乗算演算子 (*
) はオペランドの積を生成します。
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
例
数値を使用した乗算
2 * 2 // 4
-2 * 2 // -4
無限大との乗算
Infinity * 0 // NaN
Infinity * Infinity // Infinity
非数との乗算
'foo' * 2 // NaN
仕様
ブラウザーの互換性
BCD tables only load in the browser