⛔octal literals not allowed in strict mode❗️
🚧 under construction
JS ⟩ error ⟩ SyntaxError ⟩ delete of an unqualified identifier in strict mode
let x = 010; // ❗ octal literal
let y = 0x10; // ⭐ hexadecimal literal
// mode: sloppy strict
// -------------------------------------
x, // ✅ 8 ⛔ SyntaxError
y, // ✅ 16 ✅ 16
// ⛔ SyntaxError: Octal literals are not allowed in strict mode.Last updated
Was this helpful?