JavaScript Is Not a Number Function: isNaN()

If this post helps you, click an ad

The JavaScript isNaN function accepts one argument and returns true if that argument is not a number value and false if the argument is a number value. For example:

document.write(isNaN(10))//Is a number, returns false
document.write(isNaN('a'))//Is not a number, returns true

Leave a Reply