Javascript WTF

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


NaN is a number

NaN is a number, but its’s not equal to itself!

> typeof NaN // 'Number'
> 123 === 123 // true
> NaN === NaN // false
> NaN == NaN // false