You are viewing a single thread.
View all comments 1 point
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.
1 point
*
0 points
JS 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 points
0 points