What is the use of Math function in Javascript?

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

Math function is used for handling Maths related operation like calculating Square Roots of any value,PI,Trigonometry functions like Sin,Cos,Tan and so on.It's in-built class in Javascript and same as Dot Net Math class.

For Example:-
var PI_value = Math.PI;


Output:PI means 22/7=3.14


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response