Skip to content

Commit 8f937a4

Browse files
authored
fix(operator): 2項演算子の説明の補足wo (#1227)
## 文字列結合演算子について 他の説明に合わせ「2つの文字列を結合」と、「2つ」という記述を追加 ## マイナス演算子、除算演算子、剰余演算子 これらは交換則が成り立たない演算子なので、左オペランドと右オペランドを使った説明を追加
1 parent 2781259 commit 8f937a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/basic/operator/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ console.log(10 + 0.5); // => 10.5
7272

7373
数値の加算に利用したプラス演算子(`+`)は、文字列の結合に利用できます。
7474

75-
文字列結合演算子(`+`)は、文字列を結合した文字列を返します
75+
文字列結合演算子(`+`)は、2つの文字列を結合した文字列を返します
7676

7777
{{book.console}}
7878
```js
@@ -84,7 +84,7 @@ console.log(value); // => "文字列結合"
8484

8585
### マイナス演算子(`-`) {#minus-operator}
8686

87-
2つの数値を減算する演算子です。
87+
2つの数値を減算する演算子です。左オペランドから右オペランドを減算した値を返します。
8888

8989
{{book.console}}
9090
```js
@@ -105,7 +105,7 @@ console.log(10 * 0.5); // => 5
105105

106106
### 除算演算子(`/`){#division-operator}
107107

108-
2つの数値を除算する演算子です。
108+
2つの数値を除算する演算子です。左オペランドを右オペランドで除算した値を返します。
109109

110110
{{book.console}}
111111
```js
@@ -115,7 +115,7 @@ console.log(10 / 0.5); // => 20
115115

116116
### 剰余演算子(`%`) {#modulus-operator}
117117

118-
2つの数値のあまりを求める演算子です。
118+
2つの数値のあまりを求める演算子です。左オペランドを右オペランドで除算したあまりを返します。
119119

120120
{{book.console}}
121121
```js

0 commit comments

Comments
 (0)