What is isNaN in javascript?

 Posted by Rajni.Shekhar on 4/12/2012 | Category: JavaScript Interview questions | Views: 2278 | Points: 40
Answer:

isNaN is a function, it returns true if the argument is not a number.

Example:

var a="text";

var b=1234;
document.write(isNaN(a)) //it will return true
document.write(isNaN(b)) //returns false


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response