JavaScript is an absolutely bizarre language

master
Caleb Fontenot 2023-03-07 17:16:47 +07:00
parent 0320516596
commit d3b315192f
1 changed files with 27 additions and 10 deletions

@ -10,6 +10,7 @@
<meta content="#FF0000" data-react-helmet="true" name="theme-color" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="root.css" rel="stylesheet">
</head>
@ -28,17 +29,33 @@
<h2 class="aboutme">About me<img class="aboutme" src="Caleb.jpg" alt="Caleb" height="5%" width="5%"></h2>
<p>Hi! My name is <mark>Caleb Fontenot.</mark> I am a software developer in my second semester at South Lousiana Community College.</p>
<!--p>Below is Mr. Mouse absolutely jamming it</p>
<!image src=https://files.calebfontenot.com/files/mrmouse.gif alt="Mr. Mouse">
</!-->
<!--
<p>Image map demo:</p><hl>
<img src="https://files.calebfontenot.com/files/max_face.jpg" usemap="#image_map">
<map name="image_map">
<area alt="Max's face" title="Max's face" href="" coords="1121,322,1330,634" shape="rect">
</map>
</!-->
<script type="text/javascript">
var array = new Array(10);
for (let i = 0; i < array.length; ++i) {
let temp = parseInt(Math.random() * 100) + " array index: " + i;
array[i] = temp;
console.log(i);
}
for (let i = 0; i < array.length; ++i) {
for (let j = 1; j < array.length; ++j) {
let compare1 = array[i].slice(0, array[i].indexOf(" "));
let compare2 = array[j].slice(0, array[j].indexOf(" "));
console.log(compare1 + " " + compare2);
if (compare1 > compare2) {
array[i] = array.splice(j, 1, array[i])[0];
}
}
}
for (let i = 0; i < array.length; ++i) {
document.write(array[i] + "</br>");
console.log(array[i]);
console.log(typeof(array[i]));
}
</script>
<p>
<a href="https://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"