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
Filed under: JavaScript, programming, software |
Leave a comment