# JavaScript Exponents Explained - Math.pow() Examples

**URL:** <https://forum.freecodecamp.org/t/javascript-exponents-explained-math-pow-examples/14685>\
**Category:** freeCodeCamp Contributors\
**Tags:** guide\
**Created:** [June 26, 2016, 4:52pm UTC](https://forum.freecodecamp.org/t/javascript-exponents-explained-math-pow-examples/14685 "2016-06-26T16:52:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![camperbot](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/camperbot/32/18364_2.png) [@camperbot](https://forum.freecodecamp.org/u/camperbot)\
**Post date:** [June 26, 2016, 4:52pm UTC](https://forum.freecodecamp.org/t/javascript-exponents-explained-math-pow-examples/14685/1 "2016-06-26T16:52:18Z")

</div>

## Math Pow

`Math.pow()` returns the value of a number to the power of another number.

#### Syntax

`Math.pow(base, exponent)` , where `base` is the base number and `exponent` is the number by which to raise the `base` .

`pow()` is a static method of `Math` , therefore it is always called as `Math.pow()` rather than as a method on another object.

#### Examples

```auto
Math.pow(5, 2); // 25
Math.pow(7, 4); // 2401
Math.pow(9, 0.5); // 3
Math.pow(-8, 2); // 64
Math.pow(-4, 3); // -64

```

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [August 7, 2017, 1:47am UTC](https://forum.freecodecamp.org/t/javascript-exponents-explained-math-pow-examples/14685/2 "2017-08-07T01:47:21Z")

</div>

Closed on August 7, 2017, 1:47am UTC


