Latest web development tutorials

JavaScript NaN property

Function Reference Manual JavaScript Global Functions

Definition and Usage

NaN attribute is used to refer to a particular non-numeric value. This attribute specifies the number is not illegal.

NaN property Number.Nan the same properties.

Tip: Use theisNaN () to determine whether a value is a number. The reason is that with all NaN values ​​are not equal, including its own.

grammar

Number.NaN


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support NaN property


technical details

return value: NaN
JavaScript version: 1.3


Function Reference Manual JavaScript Global Functions