You're viewing a single thread.
All comments
16
comments
Can someone explain this? I mean, the last result. Usually I can at least understand Javascript's or PHP's quirks. But this time I'm stumped.
0 0 ReplyJS null and undefined shenanigans
basically:
- bigger an lesser comparison types convert null to zero, so is zero bigger or lesser than zero? no
==
is fucky and to it null only equals undefined and undefined only equals null (and themselves), so no- is zero bigger than or equal to zero? yeah
0 0 ReplyUgh, thanks, of course. Stupid brain.
0 0 ReplyI'm starting to think JS maintainers have a thing against mathematicians
0 0 Replymore likely against humans
1 0 Reply
16
comments
Scroll to top