It returns true if the argument is not a number.
Example:
Code
Collapse | Copy Code
document.write(isNaN("Hello")+ "<br>");
document.write(isNaN("2013/06/23")+ "<br>");
document.write(isNaN(123)+ "<br>");
The output will be:
Collapse | Copy Code
true
true
false
Example:
Code
Collapse | Copy Code
document.write(isNaN("Hello")+ "<br>");
document.write(isNaN("2013/06/23")+ "<br>");
document.write(isNaN(123)+ "<br>");
The output will be:
Collapse | Copy Code
true
true
false