Math Constants and Functions in JavaScript

Math Constants and Functions in JavaScript

Ashish Lahoti

In this tutorial, we’ll learn about Math Object in JavaScript, which allows us to use mathematical constants such as π, e, √2 and perform mathematical operations on numbers such as pow(), sqrt(), max(), min(), random(), abs(), ceil(), floor(), round(), and truc().