Closed robamler closed 9 years ago
Actually, they're not, but should be preceded with "0o" rather than just "0". However, there are also binary literals ("0b..."), which are better here.
See https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-literals
Above link was a draft for ES6. In current version, ECMA Script 5.1, neither binary nor octal literals are defined. Only decimal and hex literals are allowed, see http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
Apparently, these are deprecated.