Easy Tutorial
❮ Dom Obj Meter Prop Style Flexwrap ❯

JavaScript pow() Method

JavaScript Math Object

Example

Returns the base to the exponent power, that is, base exponent.

Output result:


Definition and Usage

The pow() method returns the value of x to the power of y (x^y).


Browser Support

All major browsers support the pow() method.


Syntax

Parameter Values

Parameter Description
x Required. The base number. Must be a number.
y Required. The exponent number. Must be a number.

Return Value

Type Description
Number The value of x to the power of y.

Technical Details

| JavaScript Version: | 1.0 | | --- | --- |


More Examples

Example

In the following example, we will apply the pow() method to different combinations of numbers:

a, b, c, d, e, and f output result:


JavaScript Math Object

❮ Dom Obj Meter Prop Style Flexwrap ❯