Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

JavaScript | Math Object Complete Reference

  • Last Updated : 25 Jun, 2020

The Math object is used to perform mathematical operations on numbers.

Hey geek! The constant emerging technologies in the world of web development always keeps the excitement for this subject through the roof. But before you tackle the big projects, we suggest you start by learning the basics. Kickstart your web development journey by learning JS concepts with our JavaScript Course. Now at it's lowest price ever!

Example:




<!DOCTYPE html>
<html>
    <body>
        <h2>GeeksforGeeks</h2>
  
        <script>
// Return PI value(3.141592653589793)
            document.write(Math.PI);
        </script>
    </body>
</html>

Output:



There are many Math object properties and Methods in JavaScript which are listed below:

Math object properties:

Math object Methods:

   




My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!