Explain properties available in Math class?

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

Following are the properties available in Math Class:-

PI Returns PI(i.e. 22/7 approx. 3.14)
E Returns Euler's number(approx. 2.718)
LN2 Returns the natural logarithm of 2(approx. 0.693)
LN10 Returns the natural logarithm of 10(approx. 2.302)
LOG2E Returns the base-2 logarithm of E(approx. 1.442)
LOG10E Returns the base-10 logarithm of E(approx. 0.434)
SQRT1_2 Returns the square root of 1/2(approx. 0.707)
SQRT2 Returns the square root of 2(approx. 1.414)


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response