JavaScript is an absolutely bizarre language
This commit is contained in:
parent
d3b315192f
commit
c7733dd0a2
@ -44,7 +44,7 @@
|
||||
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) {
|
||||
if (compare1 >= compare2) {
|
||||
array[i] = array.splice(j, 1, array[i])[0];
|
||||
}
|
||||
}
|
||||
@ -55,6 +55,7 @@
|
||||
console.log(array[i]);
|
||||
console.log(typeof(array[i]));
|
||||
}
|
||||
document.write("JavaScript is an absolutely bizarre language.");
|
||||
</script>
|
||||
<p>
|
||||
<a href="https://jigsaw.w3.org/css-validator/check/referer">
|
||||
|
Loading…
Reference in New Issue
Block a user