- ✕This summary was generated using AI based on multiple online sources. To view the original source information, use the "Learn more" links.
The JavaScript Math object is a built-in object that provides properties and methods for mathematical constants and functions. Unlike most global objects, Math is not a constructor, so you cannot use it with the new operator or invoke it as a function. All properties and methods of Math are static and can be called directly.
Properties of Math Object
The Math object provides several mathematical constants that can be accessed as properties. Here are some of the key properties:
Math.E: Euler's number, approximately 2.718.
Math.PI: Ratio of a circle's circumference to its diameter, approximately 3.14159.
Math.SQRT2: Square root of 2, approximately 1.414.
Math.SQRT1_2: Square root of 1/2, approximately 0.707.
Math.LN2: Natural logarithm of 2, approximately 0.693.
Math.LN10: Natural logarithm of 10, approximately 2.303.
Math.LOG2E: Base-2 logarithm of E, approximately 1.443.
Math.LOG10E: Base-10 logarithm of E, approximately 0.434.
Methods of Math Object
Math - JavaScript | MDN - MDN Web Docs
Jul 10, 2025 · The Math namespace object contains static properties and methods for mathematical constants and functions. Math works with the Number type. It …
JavaScript Math Object - GeeksforGeeks
Jul 11, 2025 · JavaScript Math object is used to perform mathematical operations on numbers. All the properties of Math are static and unlike other objects, it does not have a constructor.
JavaScript - Math - Online Tutorials Library
The JavaScript math object provides properties and methods for mathematical constants and functions. Unlike other global objects, Math is not a constructor. …
JavaScript Mastery - Math Object
Jul 4, 2025 · Math Object The JavaScript Math object is a built-in utility that provides mathematical constants and functions for performing complex calculations. Unlike other JavaScript objects, Math is …
JavaScript Math Object: Mathematical Functions
Feb 6, 2025 · A comprehensive guide to the JavaScript Math Object, covering essential mathematical functions and constants for web development.
JavaScript Math Object: A Comprehensive Guide - tutorialpedia.org
In JavaScript, the Math object is a built - in object that provides a collection of mathematical functions and constants. It serves as a powerful tool for performing various mathematical operations, such as …
JavaScript Math Reference - W3Schools
43 rows · Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
Math - The complete JavaScript Tutorial
With that in mind, let's examine what kind of useful properties and methods we can expect from the Math object. The Math object contains several properties which are useful for different aspects of …
What is Math in JavaScript? - GeeksforGeeks
Aug 5, 2025 · JavaScript provides a built-in Math object that provides a set of methods to perform mathematical operations. These operations range from …