Skip to content
Related Articles

Related Articles

JavaScript | Math Object Complete Reference
  • Last Updated : 25 Jun, 2020
GeeksforGeeks - Summer Carnival Banner

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:

   

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :