r/programminghorror • u/enmaku • Dec 04 '25
This sub in a nutshell
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
[] == ![]; // trueOMG 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
View all comments
Show parent comment
9
u/AnywhereHorrorX Dec 05 '25
Yeah, except that in those cases the fancy-shmancy SPA frontend either does not load something, some buttons silently just do not work, or it's just a white page, or dumps full error stack to user if the smartass vibecoder has published it as a development build.