Javascript WTF

A site where we can all share in those little WTF moments we enjoy with Javascript


Null Comparison

/* null comparation */

> 0 > null
false

> 0 >= null
true

> 0 == null
false

> 0 <= null
true

> 0 < null
false

> typeof null
'object'

> null instanceof Object
false