Back to course home
0% completed
Vote For New Content
JavaScript - Math
The Math object in JavaScript provides a collection of properties and methods for mathematical constants and functions. Unlike other global objects, Math is not a constructor. All its properties and methods are static
, meaning you access them using the Math prefix, not by creating a Math object instance. This object is extremely useful for performing mathematical tasks, ranging from basic arithmetic operations to complex calculations.
Syntax
Since Math is a static object, you use it directly without instantiation:
let result = Math.methodName(parameters);
.....
.....
.....
Like the course? Get enrolled and start learning!
On this page