This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user