Explain few Methods of Math Class?

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

Math class has all static methods like,some of listed below:
Sqrt: Used for calculating Square Root of any value.
Round: Used for Rounding value to the nearest integer.
Random: Used for populating Random values.
Tan: Returns the Tangent of an angle.
Cos: Returns the Cosine of an angle
Sin: Returns the Sine of an angle
Pow(x,y): Returns the value of x to the power of y.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response