Open links in new tab
  1. Math - JavaScript | MDN - MDN Web Docs

    • Unlike most global objects, Math is not a constructor. You cannot use it with the new operator or invoke the Math object as a function. All properties and methods of Math are static.… See more

    Overview

    The Math namespace object contains static properties and methods for mathematical constants and functions.

    Mozilla Developer
    Static properties

    Math.E
    Euler's number and the base of natural logarithms; approximately 2.718.
    Math.LN10

    Mozilla Developer
    Static methods

    Math.abs()
    Returns the absolute value of x.
    Math.acos()
    Returns the arccosine of x.

    Mozilla Developer
    Feedback
  1. JavaScript provides a comprehensive set of mathematical functions and constants through the Math object. This object is static, meaning you don't need to create an instance of it to use its properties and methods.

    Math Properties (Constants)

    JavaScript offers several mathematical constants that can be accessed directly from the Math object. Some of the key constants include:

    • Math.PI: The ratio of a circle's circumference to its diameter, approximately 3.14159.

    • Math.E: Euler's number, the base of natural logarithms, approximately 2.718.

    • Math.SQRT2: The square root of 2, approximately 1.414.

    • Math.LN2: The natural logarithm of 2, approximately 0.693.

    Math Methods

    The Math object provides various methods for performing mathematical operations. Here are some commonly used methods:

    Rounding Methods

    Feedback
  2. JavaScript Math Object - W3Schools

    The Math Object The JavaScript Math object allows you to perform mathematical tasks. The Math object is static. All methods and properties can be used without creating a Math object first.

  3. 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.

  4. JavaScript Math Functions - Tutorial Gateway

    29 rows · Mar 29, 2025 · The JavaScript Math Objects provide various Functions and Constants / Properties, which allow us to perform mathematical functions. Unlike other global objects, the …

  5. JavaScript Math Functions Explained in Depth - ExpertBeacon

    Sep 1, 2024 · JavaScript‘s built-in Math library enables performing essential quantitative tasks like randomization, rounding, exponents/logs, geometry and statistics. Combine multiple functions …

  6. JavaScript Math Object: All Functions With Examples

    Nov 22, 2025 · Learn JavaScript Math Object with easy examples. Explore methods like round (), floor (), ceil (), and more to perform common calculations in JavaScript.

  7. 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.

  8. 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.

  9. Useful JavaScript Math Functions and How to Use Them

    Sep 27, 2022 · Learn what you can do with the built-in JavaScript Math object, which includes useful functions for performing mathematical operations.

  10. JavaScript Math Functions Explained - freeCodeCamp.org

    Jan 18, 2020 · Math is one of JavaScript's global or standard built-in objects, and can be used anywhere you can use JavaScript. It contains useful constants like π and …

By using this site you agree to the use of cookies for analytics, personalized content, and ads.Learn more about third party cookies|Microsoft Privacy Policy