r/programminghumor • • Sep 25 '26

Tissues

Post image
1.8k Upvotes

31 comments sorted by

View all comments

Show parent comment

1

u/RedAndBlack1832 Sep 27 '26 edited Sep 27 '26

Null is 0. Zero is 0. And undefined is undefined (as in: can literally be anything and isn't guaranteed to be consistent between invocations, introducing very bad nondeterminism)

1

u/MilkImpossible4192 Sep 27 '26

¿what? no.

[ +null is 0, +'0' is 0, +no is 0, not 0 is on ]