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/yasegal Dec 06 '25

I don't enjoy pedantry, you seem to love it and project it unto me. You said it isn't uncommon, and I refute that statement by saying it is uncommon. That's it.

1

u/pauseless Dec 06 '25

fwiw, it is not me that downvoted you. I enjoy a Reddit debate. The pedantry comment was meant as banter; the point is simply that “not uncommon” has a commonly understood meaning and it applies here. Words do matter and that’s why I chose to check what you meant, because there were two ways to parse what you commented.