JavaScript tutorial:
NaN property

 

Applies to: Global Object

The NaN property is used to get the special value NaN indicating that an expression is not a number.

Syntax

NaN

Return value

Returns the special value NaN indicating that an expression is not a number.

Example

The NaN property (not a number) is a member of the Global object, and is made available when the scripting engine is initialized.

See also: isNaN Method