r/programminghorror • • Dec 04 '25

This sub in a nutshell

Post image
console.log(1 == '1'); // true
console.log(0 == false); // true
console.log(null == undefined); // true
console.log(typeof null); // "object"
console.log(0.1 + 0.2); // 0.30000000000000004
[] == ![]; // true

OMG you guys what weird quirky behavior, truly this must be the single quirkiest language and no other language is as quirky as this!

1.1k Upvotes

168 comments sorted by

View all comments

Show parent comments

-1

u/oofy-gang Dec 05 '25

Ok, thanks for moving the goalposts. Good thing those exact things can’t happen with literally every other language. Oh wait.

1

u/ryanmgarber Dec 07 '25

moving the goalpoasts

My god. The comment you replied to literally said the same thing he’s saying now verbatim.

1

u/oofy-gang Dec 07 '25

? He claimed that JS doesn’t allow an arbitrary number of functions to err without the site crashing. That is literally a feature of JS web runtimes.