Can we pass any value other than numeric in Max function?

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

No ,we can pass only integer or numeric value in Max function.If we provide value other than numeric,then Max function will return NAN means Not A Number .

For Example:
var value = Math.max("a",20,"b");


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response