Skip to content

Commit 3d86152

Browse files
authored
Update article.md
Fix some quotes for consistency with above paragraphs
1 parent 634e066 commit 3d86152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/02-first-steps/08-operators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Here, operators work one after another. The first `+` sums two numbers, so it re
109109
```js run
110110
alert('1' + 2 + 2); // "122" and not "14"
111111
```
112-
Here, the first operand is a string, the compiler treats the other two operands as strings too. The `2` gets concatenated to `'1'`, so it's like `'1' + 2 = '12'` and `'12' + 2 = '122'`.
112+
Here, the first operand is a string, the compiler treats the other two operands as strings too. The `2` gets concatenated to `'1'`, so it's like `'1' + 2 = "12"` and `"12" + 2 = "122"`.
113113
114114
The binary `+` is the only operator that supports strings in such a way. Other arithmetic operators work only with numbers and always convert their operands to numbers.
115115

0 commit comments

Comments
 (0)