Рет қаралды 13,348
The global property NaN represents any value that is Not A Number.
The global isNaN method allows you to check whether or not any value is Not A Number. The key point about using the isNaN( ) method is understanding that everything it tests is converted to a Number before the test is actually run.
Code GIST: gist.github.co...