this post was submitted on 10 Sep 2025
378 points (97.0% liked)

Programmer Humor

26272 readers
1275 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

(But hey at least I don't use Tailwind nor any of those MBA hallucination scams.)

you are viewing a single comment's thread
view the rest of the comments
[–] funkless_eck@sh.itjust.works 5 points 2 days ago* (last edited 2 days ago)

Object.is(NaN, NaN); // -> true

NaN === NaN; // -> false

Object.is(-0, 0); // -> false

-0 === 0; // -> true

Object.is(NaN, 0 / 0); // -> true

NaN === 0 / 0; // -> false

!![] // -> true

[] == true // -> false

!!null; // -> false

null == false; // -> false

0 == false; // -> true

"" == false; // -> true