The function Number.isNaN()
is a static function on Number
returns false
for any not-Number type
like null
like a string
like an object
for real Numbers
like 0
or Infinity (+β)
or the biggest Number (9007199254740991 (2^53β1))
or a decimal number
returns true for
exactly NaN
the result of zero divided by zero
something which seems not to be a number
Links
Description of `Number.isNaN` in the specification.
Description of `Number.MAX_SAFE_INTEGER` in the spec.
Description of `Number.POSITIVE_INFINITY` in the spec.
The (old) global `isNaN` function, that behaves a bit different.
The place where `Math.PI` is specified.
Related Katas
Number API
Number.isInteger()
Number.isNaN()
Number.parseInt()
Difficulty Level
BEGINNER
First Published
15 June 2019
Stats
13 tests to solve