Why is JavaScript null being evaluated strangely?

Why was JavaScript running the way it is?

Consider the following example:

null == 0 // false
null >= 0 // true
null > 0  // false

      

+3


source to share





All Articles