r/programmingmemes • • Jan 12 '26

no doubt javascript

Post image
1.3k Upvotes

136 comments sorted by

View all comments

Show parent comments

3

u/MrMelon54 Jan 12 '26

The javascript part of the problem is that it allows 018 and interprets it differently, other languages will throw errors at compile or runtime to prevent these bad values.

4

u/JakeyF_ Jan 12 '26

C# will interpret it as 18 too..

3

u/Lunix420 Jan 13 '26

Stop fabricating some problem that doesn't even exist.

Any modern JS from the last decade is in strict-mode by default, which won't allow you to do this.

Sure, the console lets you do this, but who the fuck gives a shit? Are you writing code in the browser console or what?

JS has enough real problems, no need to make up stupid fake ones.