Standard built-ins

Number.NaN

Try the free JavaScript compiler

A property holding the Number NaN value, the same Number value exposed by global NaN. NaN is unequal to itself using strict equality. Number.isNaN tests it without coercion.

Formal Syntax & Structure

javascript syntaxjavascript
Number.NaN

Return Value

number

NaN.

Working Example

Example Snippetjavascript
console.log(typeof Number.NaN,Number.isNaN(Number.NaN));
JavaScript Reference