Language Reference pow Method


Description

Computes the value of a base value taken to an specified power.

Syntax

var numVar = Math.pow( base, exponent )

Arguments

base: The base value of the expression.
exponent: The exponent value of the expression.

Return Value

A numeric value equal to baseexponent.

Remarks
Example: Math.pow(10,3) returns 1000.