Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JavaScript NaN property

JavaScript NaN property

Number Object Reference JavaScript Number object


Definition and Usage

The NaN property is a special value representing a non-numeric value. This property is used to indicate that a value is not a number.

You can set a Number object to this value to indicate that it is not a numeric value.

Tip: Use the global function isNaN() to determine whether a value is NaN.

Syntax

Number.NaN


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the NaN property.


Technical Details

Return Value: NaN
JavaScript version: 1.3

Number Object Reference JavaScript Number object