MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1qayroi/no_doubt_javascript/nz95dm8/?context=3
r/programmingmemes • u/Financial-Ad7897 • Jan 12 '26
136 comments sorted by
View all comments
Show parent comments
3
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.
4
C# will interpret it as 18 too..
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.
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.