Latest web development tutorials

JavaScript NaN property

Number Object Reference JavaScript Number Object


Definition and Usage

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

Number objects can be set to this value, indicating that it is not a numeric value.

Tip: Use theisNaN () global function to determine whether a value is NaN values.

grammar

Number.NaN


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support NaN property.


technical details

return value: NaN
JavaScript version: 1.3


Number Object Reference JavaScript Number Object