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: https://gist.github.com/prof3ssorSt3v...