December 2013
Intermediate to advanced
384 pages
9h 54m
English
JavaScript has a built-in Math object that provides functionality for extended mathematical operations. The Math object has property values, listed in Table 2.2, that contain the most common constants. You can access the Math object directly from your JavaScript code. For example, to get the value of pi, you would use the following:
Math.PI
Table 2.2 Math Object Properties
The Math object also includes several methods that allow you to apply higher math operations. The following sections provide phrases for those operations.
Read now
Unlock full access