The JavaScript Math object allows you to perform mathematical tasks on numbers. Math is not a constructor — all properties and methods are static.
Math.round() — Round to nearestMath.ceil() — Round upMath.floor() — Round downMath.abs() — Absolute valueMath.max() / Math.min()Math.random() — 0 to 1 randomMath.sqrt() — Square rootMath.pow() — PowerMath.PI — 3.14159...Edit the code below and click Run to see the result live.