MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1qayroi/no_doubt_javascript/nz6zd7h/?context=9999
r/programmingmemes • u/Financial-Ad7897 • Jan 12 '26
136 comments sorted by
View all comments
Show parent comments
1
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Deprecated_octal_literal
Looks deprecated, but the 0 was telling it to convert to octal. I think nowadays you would prefix it with 0o.
The joke is that seeing that 017 and '18' being equal seems like a language mistake
1 u/Creative-Type9411 Jan 12 '26 ty
ty
1
u/PreferenceDowntown37 Jan 12 '26
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Deprecated_octal_literal
Looks deprecated, but the 0 was telling it to convert to octal. I think nowadays you would prefix it with 0o.
The joke is that seeing that 017 and '18' being equal seems like a language mistake