What will happen if we pass string value in Ceil method? Will it throw any error or not.

 Posted by Rajesh_Kumar on 2/14/2014 | Category: JavaScript Interview questions | Views: 534 | Points: 40
Answer:

If we pass any string value in Ceil Method,then it will not throw any error but will show NAN means Not A Number as output.

For Example:

alert(Math.ceil("Rajesh"));


Output:NAN


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response