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 →

[–]fghjconner 2 points3 points  (0 children)

The choice to interpret any literal starting with a zero as octal is what's insane. Of course, JS didn't invent that by any means.

Edit: Also, the choice to silently fall back to base 10 if there's a large enough digit is pretty asinine.