Skip to content

Instantly share code, notes, and snippets.

View nomanoff's full-sized avatar
👋
hello

Azizbek Nomonjonov nomanoff

👋
hello
View GitHub Profile
Number("0."); // 0
Number(".0"); // 0
Number("."); // NaN
Number(undefined); // NaN
Number(null); // 0
24.toFixed(2); // Syntax Error
24. toFixed(2); // Syntax Error
24 .toFixed(2); // "24.00"
24 . toFixed(2); // "24.00"
24.0.toFixed(2); // "24.00"
1 < 2 < 3; // true
3 > 2 > 1; // false
@nomanoff
nomanoff / wtf_1.js
Last active May 22, 2022 06:50
wtf JavaScript
Number.MAX_VALUE > 0; // true
Number.MIN_VALUE < 0; // false