Skip to content
Related Articles

Related Articles

JavaScript | Math Object Complete Reference

View Discussion
Improve Article
Save Article
  • Last Updated : 25 Jun, 2020

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

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!