// Basics | |
0; | |
1; | |
123; | |
NaN; | |
Infinity; | |
// Floats | |
1.2; | |
1e2; | |
1.e3; | |
1.2e3; | |
1.2e+3; | |
1.2e-3; | |
// Decimal Prefix | |
.2; | |
.2e3; | |
.2e+3; | |
.2e-3; | |
// Zero Prefixed / Legacy Octal | |
00; | |
010; | |
009; | |
// Hex, Octal, Binary | |
0x101; | |
0X201; | |
0o101; | |
0O201; | |
0b101; | |
0B101; | |
// ES2019 - Numeric Separators | |
1_2_3_4; | |
1_000_000; | |
10000_00; | |
1_000000_0_0_0; | |
1_2.3_4e5_6; | |
1_1.2_2; | |
1_1e2_2; | |
0x1_0; | |
0X2_0; | |
0o1_0; | |
0O2_0; | |
0b1_0; | |
0B1_0; | |
// ES2020 - BigInt | |
0n; | |
123n; | |
123456789123456789123456789123456789123456789123456789123456789n; | |
1_2_3n; | |
0x123n; | |
0x223n; | |
0o123n; | |
0O223n; | |
0b101n; | |
0B101n; |