Why does typeof NaN return ‘number’?
Just out of curiosity. It doesn’t seem very logical that typeof NaN is number. Just like NaN === NaN or NaN == NaN returning false, by the way. Is this one of the peculiarities of javascript, or would there be a reason for this? Edit: thanks for your answers. It’s not an easy thing to … Read more