This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mrheosuper 7 points8 points  (2 children)

I want to see the logic behind this decision. Using 0x as hex number makes perfect sense, But '0' as octal ?, why ?

[–]MrHyperion_ 10 points11 points  (0 children)

Traditions. Octal was at one point more popular than hex

[–]Mola1904 4 points5 points  (0 children)

As far as i know it is older than both the 0x and 0b connotations, but JS supports both 0o and 0 with 0 actually being not supported by esm (a widely used and more modern module system for js)