Working with Exponents and Logarithms
Problem
You need to do some calculations that involve exponents and logarithms.
Solution
Use Javascript’s Math object to provide common mathematical functions.
Discussion
For more information on the Math object see the documentation on the Mozilla Developer Network. Also refer to Math Constants for discussion of the various constants in the Math object.