This documentation is archived and is not being maintained.

NaN Property

A special value that indicates an arithmetic expression returned a value that was not a number.

Number.NaN

Number

Required. The global Number object.

The Number object does not have to be created before the NaN property can be accessed.

NaN does not compare equal to any value, including itself. To test if a value is equivalent to NaN, use the isNaN method of the Global object.

Show: