Skip to content

Commit 3b2b4fc

Browse files
authored
Merge pull request #136 from flinchtheone/patch-1
Changed 'i' variable to 'counter'
2 parents e3b35f8 + d6dd01e commit 3b2b4fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Operators `++` and `--` can be placed both after and before the variable.
266266
- When the operator goes after the variable, it is called a "postfix form": `counter++`.
267267
- The "prefix form" is when the operator stands before the variable: `++counter`.
268268
269-
Both of these records do the same: increase `i` by `1`.
269+
Both of these records do the same: increase `counter` by `1`.
270270
271271
Is there any difference? Yes, but we can only see it if we use the returned value of `++/--`.
272272

0 commit comments

Comments
 (0)