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
This is simply because NaN is a property of the Number object in JS, It has nothing to do with it being a number.
NaN