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
[] == ![]; // 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
View all comments
Show parent comment
17
u/Wiwwil Dec 05 '25
Arguably it's what killed Angular 2 at some point and it's coming back because React is doing weird things (and the Angular team did great work).
If you force people to rewrite a big part of their app they might just switch to something else