JS Equality

This page shows the result of loose and strict equality operators applied to special JavaScript values.

Loose Equality

Loose equality performs a type cast, so false == 0, and null == undefined.

Strict Equality

Strict equality skips the type cast. Note that NaN is strictly different from itself.