Wednesday, March 16, 2011

How to check if an argument is not a number in Javascript

isNaN function
Evaluates an argument to determine if it is not a number.
isNaN("string") //returns true
isNaN("12") //returns false



No comments:

Post a Comment