Learn how to use JavaScript Exponentiation (**).
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)
:
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.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!