How TO - JavaScript Exponentiation (**)
Learn how to use JavaScript Exponentiation (**).
Exponentiation Operator
The exponentiation operator (**
) raises the
first operand to the power of the second operand:
x ** y
produces the same result as Math.pow(x, y)
:
Exponentiation Assignment
The exponentiation assignment operator (**=
) raises the value of a variable to the power of the right operand.
Read more about JavaScript Operators in our JavaScript Operator Tutorial.
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.