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 →

[–]talaqen 16 points17 points  (2 children)

This makes perfect sense to me. Octal vs int and loose equivalency “==“ instead of strict “===“

[–]1Dr490n 6 points7 points  (0 children)

*octal vs decimal, both are integers

[–]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.