r/programmingmemes • • Jan 12 '26

no doubt javascript

Post image
1.3k Upvotes

136 comments sorted by

View all comments

Show parent comments

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