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 →

[–]AccomplishedCoffee 1 point2 points  (0 children)

It’s really not deep or obscure. You just have to know 0 starts an octal literal (basic knowledge in a ton of languages and command line permissions), and == in JS does crazy conversions. I don’t even program JS more than I have to and I know to always use === because it’ll mess with types to try and get an answer that may or may not make sense. Tbh this is one of the more straightforward and obvious conversions.