Math.pow
Math.pow($base, $exp) -> number
Description
Get $base
raised to the power of $exp
.
Math.pow(2, 3) //= 8 Math.pow(-1, 10) //= 1
NoteYou can use the
**
operator instead. (e.g. 2 ** 3 = 8
)
Get $base
raised to the power of $exp
.
Math.pow(2, 3) //= 8 Math.pow(-1, 10) //= 1
**
operator instead. (e.g. 2 ** 3 = 8
)