Math Constants
Problem
You need to use common mathematical constants like pi or e.
Solution
Use Javascript’s Math object to provide commonly needed mathematical constants.
Discussion
For another example of how a math constant is used in a real world problem, refer to the Converting Radians and Degrees section of this Math chapter.