This commit is contained in:
Philippe Torrel
2026-06-19 10:33:44 +02:00
parent 91406bd7f1
commit 7cbd3bef3b
8 changed files with 84 additions and 38 deletions

View File

@@ -36,6 +36,10 @@
console.log(Math.PI); //=> 3.141592653589793
console.log(Math.max(3, 7, 20, 1)); // => 20
const numbers = [3, 7, 20, 1];
console.log(Math.max(...[numbers])); // => 20
console.log(Math.min(3, 7, 20, 1)); // => 1
console.log(Math.abs(-3)); //=> 3

View File

@@ -69,6 +69,13 @@
console.log('[' < '('); // => false
console.log('|' < ']'); // => false
console.log('|'.charCodeAt() < ']'.charCodeAt());
console.log(124 < 93);
console.log(']'.charCodeAt()); // => 93
console.log('|'.charCodeAt()); // => 124
// implizite Typkonvertierung
// Wenn ein Operand "Number" ist, dann wird gegenüberliegender Operand in "Number" konvertiert
console.log('300' < 4); // => false (300 < 4)