Math Object in JavaScript

The Math object in JavaScript is a built-in object that provides a variety of mathematical functions and constants. It's not a constructor, so it cannot be instantiated. All properties and methods are static and can be accessed directly via the Math object.


Common Math Properties and Methods


Math Properties

  1. Math.PI:

  2. Math.E:

  3. Math.LN2:

  4. Math.LN10:

  5. Math.LOG2E:

  6. Math.LOG10E:

  7. Math.SQRT2:

  8. Math.SQRT1_2:

  9. Math.MAX_VALUE:

  10. Math.MIN_VALUE:


Math Methods

  1. Math.abs(x):

  2. Math.ceil(x):