What does is Nan function do?

 Posted by Syedshakeer on 8/24/2009 | Category: JavaScript Interview questions | Views: 21804
Select from following answers:
  1. Return true if the argument is not a number
  2. Return true if the argument is a number
  3. Return true if the argument is divided by zero
  4. Return true if the argument is a perfect square.
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Saantosh on: 9/4/2009
Ans : 1
isNaN() function :- check value is not a number
eg:

document.write(isNaN(1)); Output-->false
document.write(isNaN("A")); Output-->true

Login to post response