JavaScript NaNProperty

Number 对象参考手册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 the Number object to this value to indicate that it is not a numeric value.

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

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 对象参考手册JavaScript Number Object

Other Extensions