Just out of curiosity.
It doesn\'t seem very logical that typeof NaN is number. Just like NaN === NaN or NaN == NaN returning
typeof NaN
NaN === NaN
NaN == NaN
It is special value of Number type as POSITIVE_INFINITY
Why? By design