Skip to content

Commit 6109448

Browse files
authored
Remove quotes around comma operator
1 parent abef5c4 commit 6109448

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,14 @@ So, there are special operators for that:
253253
254254
```js run no-beautify
255255
let counter = 2;
256-
counter++; // works same as counter = counter + 1, but shorter
256+
counter++; // works the same as counter = counter + 1, but is shorter
257257
alert( counter ); // 3
258258
```
259259
- **Decrement** `--` decreases a variable by 1:
260260
261261
```js run no-beautify
262262
let counter = 2;
263-
counter--; // works same as counter = counter - 1, but shorter
263+
counter--; // works the same as counter = counter - 1, but is shorter
264264
alert( counter ); // 1
265265
```
266266
@@ -408,9 +408,9 @@ alert( n ); // 16 (right part evaluated first, same as n *= 8)
408408
409409
## Comma
410410
411-
The comma operator `','` is one of most rare and unusual operators. Sometimes it's used to write shorter code, so we need to know it in order to understand what's going on.
411+
The comma operator `,` is one of most rare and unusual operators. Sometimes it's used to write shorter code, so we need to know it in order to understand what's going on.
412412
413-
The comma operator allows us to evaluate several expressions, dividing them with a comma `','`. Each of them is evaluated, but the result of only the last one is returned.
413+
The comma operator allows us to evaluate several expressions, dividing them with a comma `,`. Each of them is evaluated, but the result of only the last one is returned.
414414
415415
For example:
416416

0 commit comments

Comments
 (0)