べき乗代入 (**=)
べき乗代入演算子 (**=
) は、変数の値を右辺のオペランドでべき乗します。
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
構文
Operator: x **= y Meaning: x = x ** y
例
べき乗代入の仕様
// 次の変数を想定
// bar = 5
bar **= 2 // 25
bar **= 'foo' // NaN
仕様
ブラウザー実装状況
BCD tables only load in the browser