JavaScript tutorial:
Math object

 

Methods 

Properties

The Math object is an intrinisic object that provides basic mathematics functionality and constants.

Syntax

Math[.{property | method}]

Example

The Math object cannot be created using the new operator, and gives an error if you attempt to do so. It is created by the scripting engine when the engine is loaded. All of its methods and properties are available to your script at all times.

See also: Number Object