The math object provides you properties and methods for mathematical constants and functions.

Unlike the other global objects, Math is not a constructor. All properties and methods of Math are static and can be called by using Math as an object without creating it.

Thus, you refer to the constant pi as Math.PI and you call the sine function as Math.sin(x), where x is the method's argument.

Syntax:

Here is the simple syntax to call properties and methods of Math.

var pi_val = Math.PI;
var sine_val = Math.sin(30);

Math Properties:

Here is a list of each property and their description.