From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../operators/multiplication_assignment/index.html | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/ja/web/javascript/reference/operators/multiplication_assignment/index.html (limited to 'files/ja/web/javascript/reference/operators/multiplication_assignment') diff --git a/files/ja/web/javascript/reference/operators/multiplication_assignment/index.html b/files/ja/web/javascript/reference/operators/multiplication_assignment/index.html new file mode 100644 index 0000000000..86e53c206a --- /dev/null +++ b/files/ja/web/javascript/reference/operators/multiplication_assignment/index.html @@ -0,0 +1,61 @@ +--- +title: 乗算代入 (*=) +slug: Web/JavaScript/Reference/Operators/Multiplication_assignment +tags: + - Assignment operator + - JavaScript + - Language feature + - Operator + - Reference +translation_of: Web/JavaScript/Reference/Operators/Multiplication_assignment +--- +
{{jsSidebar("Operators")}}
+ +

乗算代入演算子 (*=) は、変数に右のオペランドの値を乗算し、結果を変数に代入します。

+ +
{{EmbedInteractiveExample("pages/js/expressions-multiplication-assignment.html")}}
+ +
+ + + +

構文

+ +
Operator: x *= y
+Meaning:  x  = x * y
+ +

+ +

乗算代入の使用

+ +
// 次の変数を想定
+//  bar = 5
+
+bar *= 2     // 10
+bar *= 'foo' // NaN
+ +

仕様

+ + + + + + + + + + +
仕様
{{SpecName('ESDraft', '#sec-assignment-operators', 'Assignment operators')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("javascript.operators.multiplication_assignment")}}

+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf