We can do:
NaN = 'foo'
as well as
undefined = 'foo'
Why are they not reserved keywords?
-
I think it should be implemented in order to be sure that when we are looking for a
number, it is anumber🙂 -
If we should use
IsNaN()ortypeof, why areNaNorundefinedneeded?
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined