The JavaScript math pow method returns the base to the exponent power such as base exponent. Raises a base number to the exponent power that is the base number multiplied by itself exponent times. The syntax for exponentiation is two asterisks in a row.
JavaScript - Math pow Method - This method returns the base to the exponent power that is baseexponent.
Raises a base number to the exponent power that is the base number multiplied by itself exponent times. If the base is negative and the exponent is not an integer the result is NaN. The Mathpow method is used to power of a number ie the value of number raised to some exponent. Exponentiation is one of the newer operators in JavaScript and it allows us to calculate the power of a number by its exponent.