What is the output of below Javascript code alert(Math.sqrt(4));

 Posted by Rajesh_Kumar on 2/13/2014 | Category: JavaScript Interview questions | Views: 710 | Points: 40

Output will be 2.Actually SQRT method evaluates square root of any value same a mathematics square root.

So, square root of 4 will be 2.

Take another example as

square root of 16 will be 4.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response