Articles → JavaScript → pow() method in JavaScript

pow() method in JavaScript






Purpose





Syntax


Math.pow(x,y)





Example


<html>
    <head>
        <title></title>
        <script>
            alert(Math.pow(4,2));
        </script>
    </head>
    <body>

    </body>
</html>



Output





Posted By  -  Karan Gupta
 
Posted On  -  Thursday, May 07, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250