JavaScript Tutorial

Español Français 中文 Deutsch Portuguese Japanese nederlands
Java-Script Tutorial
Introduction Introduction
Variables Variables
Operators Operators
Statements Statements
Loops Loops
Functions Functions
Objects Objects
Arrays Arrays
Cookies JS Cookies
Browser Objects Browser Objects
Form DOM Form DOM
Style Objects DOM Style Objects
Forums Ask Your Doubts
Scraps More about Javascript
Feedback Feedback

Math.pow() Method - Math Functions

Tutorials Javascript


Math.pow() method of Math Functions in Javascript.
How to get the exponential power for the given base number in javascript?


Object: Math

Method: Math.pow()

Description: To get the exponential power for a base number we use this function. The below example will get exponent power value for the given base number using math functions.

<script type="text/javascript">
document.write('4 to the power of 2 is::'+Math.pow(4,2));
document.write('2 to the power of 2 is::'+Math.pow(2,2));

In the above example,
  • Math.pow() method returns 16 for 4 to the power of 2.
  • The exponential value for 2 to the power of 2 is 4.

  • A Note
    Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

    Other Links

    web hosting