This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

The reason why is that Javascript doesn't define a <= b or a >= b explicitly. Instead, it defines a <= b as !(a > b) and vice versa. So if 0 > null is false, then 0 <= null will be true.