aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/javascript/reference/operators/subtraction_assignment/index.md
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-09-26 01:32:15 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-10-03 13:37:37 +0900
commitfb129cca2082cbc57f93025a2e46797e5fb4a0f3 (patch)
treeea14ee032bb589704833b4cf6bf9bf79f973cc1d /files/ja/web/javascript/reference/operators/subtraction_assignment/index.md
parent3d9227f8d11cf28c9999054afa2d63b83ef38b3d (diff)
downloadtranslated-content-fb129cca2082cbc57f93025a2e46797e5fb4a0f3.tar.gz
translated-content-fb129cca2082cbc57f93025a2e46797e5fb4a0f3.tar.bz2
translated-content-fb129cca2082cbc57f93025a2e46797e5fb4a0f3.zip
代入演算子の文書を更新
- 2021/07/21 時点の英語版に更新
Diffstat (limited to 'files/ja/web/javascript/reference/operators/subtraction_assignment/index.md')
-rw-r--r--files/ja/web/javascript/reference/operators/subtraction_assignment/index.md45
1 files changed, 16 insertions, 29 deletions
diff --git a/files/ja/web/javascript/reference/operators/subtraction_assignment/index.md b/files/ja/web/javascript/reference/operators/subtraction_assignment/index.md
index fa5c3b591a..5a0f431797 100644
--- a/files/ja/web/javascript/reference/operators/subtraction_assignment/index.md
+++ b/files/ja/web/javascript/reference/operators/subtraction_assignment/index.md
@@ -7,6 +7,7 @@ tags:
- 言語機能
- 演算子
- Reference
+browser-compat: javascript.operators.subtraction_assignment
translation_of: Web/JavaScript/Reference/Operators/Subtraction_assignment
---
{{jsSidebar("Operators")}}
@@ -15,47 +16,33 @@ translation_of: Web/JavaScript/Reference/Operators/Subtraction_assignment
{{EmbedInteractiveExample("pages/js/expressions-subtraction-assignment.html")}}
-<div></div>
-
-
-
## 構文
-<pre class="syntaxbox notranslate"><strong>Operator:</strong> x -= y
-<strong>Meaning:</strong> x = x - y</pre>
+```js
+x -= y // x = x - y
+```
## 例
-<h3 id="減算代入の使用">減算代入の使用</h3>
+### 減算代入の使用
-<pre class="brush: js notranslate">// 次の変数を想定
+```js
+// 次の変数を想定
// bar = 5
bar -= 2 // 3
-bar -= 'foo' // NaN</pre>
-
-<h2 id="仕様">仕様</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">仕様</th>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-assignment-operators', 'Assignment operators')}}</td>
- </tr>
- </tbody>
-</table>
+bar -= 'foo' // NaN
+```
-<h2 id="ブラウザーの互換性">ブラウザーの互換性</h2>
+## 仕様書
+{{Specifications}}
+## ブラウザーの互換性
-{{Compat("javascript.operators.subtraction_assignment")}}
+{{Compat}}
-<h2 id="関連項目">関連項目</h2>
+## 関連情報
-<ul>
- <li><a href="/ja/docs/Web/JavaScript/Guide/Expressions_and_Operators#Assignment">代入演算子</a></li>
- <li><a href="/ja/docs/Web/JavaScript/Reference/Operators/Subtraction">減算演算子</a></li>
-</ul>
+- [JavaScript ガイドの代入演算子](/ja/docs/Web/JavaScript/Guide/Expressions_and_Operators#assignment)
+- [減算演算子](/ja/docs/Web/JavaScript/Reference/Operators/Subtraction)