pow(num, exponent)

Facilitates exponential expressions. The pow() function is an efficient way of multiplying numbers by themselves (or their reciprocal) in large quantities. For example, pow(3, 5) is equivalent to the expression 3 * 3 * 3 * 3 * 3 and pow(3, -5) is equivalent to 1 / 3 * 3 * 3 * 3 * 3.

Type: function

Parameter(s):

  • num {Number}:

    Base of the exponential expression.

  • exponent {Number}:

    Power of which to raise the base.

Returns:

  • {Number}:

    the result