What is isNaN in javascript?

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

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


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