What is the difference between Math.SQRT2 and Math.sqrt()?

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

Math.SQRT2 is a Math property where Math.sqrt() is Method available in Math class.

We can calculate Square Root of any value with the help of Math.sqrt() method but we can only get only Square Root of 2 in case of Math.SQRT2 property.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response