top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What does isNaN function do? When is it used?

+2 votes
367 views
What does isNaN function do? When is it used?
posted Jun 5, 2014 by Khusboo

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes
 
Best answer

NAN means not a number, it is used to check whether a value is number or not.

Example :
isNaN(123) -> it will return false.because it is a number
isNaN(12/3/2014)->it will return true.because it is not a number.

answer Jun 5, 2014 by Gowri Sankar
Similar Questions
...