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

JavaScript NaN property

JavaScript NaN property

Function Reference JavaScript Global Functions


Definition and Usage

NaN means Not a Number; the NaN property is used to reference a special non-numeric value, and this property does not designate an illegal number.

The NaN property is the same as the Number.NaN property.

Tip: Use isNaN() to determine whether a value is a number. The reason is that NaN is not equal to any value, including itself.

Syntax

Number.NaN


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the NaN property


Technical Details

Return Value: NaN
JavaScript version: 1.3

Function Reference JavaScript Global Functions