A special constant that specifies a value that is Not-A-Number
SyntaxNaN
Examples
NaN mainly occurs when parsing goes wrong
parseInt(123);
parseInt("123");
parseInt('foo');
NaN does not equal NaN, use the isNaN Function instead to test if a value is not a number
NaN === NaN;
isNaN(NaN);
Remarks
The NaN constant is a member of the Global object, and is made available when the scripting engine is initialized.
See also Other articles AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4