DEV Community

Cover image for JavaScript Math Object Demystified
Tanvir Ahmed
Tanvir Ahmed

Posted on

JavaScript Math Object Demystified

The JavaScript Math object is a built-in object that provides mathematical functions and constants for performing complex calculations. It is static, meaning you do not need to create an instance of it to use its methods. Instead, you can directly call its properties and methods using Math.

❑ Math Constants (Predefined Values)
✔️Math.PI 3.141592653589793
✔️Math.E 2.718281828459045

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay