Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The Math object contains static
properties and methods for mathematically dealing with numbers or
providing mathematical constants (e.g., Math.PI;). This object is built into JavaScript,
as opposed to being based on a Math()
constructor that creates math instances.
It might seem odd that Math
starts with a capitalized letter since you do not instantiate an
instance of a Math object. Do not be
thrown off by this. Simply be aware that JavaScript sets this object up
for you.