mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): fix some terms in JS pyramid project (#56930)
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ test = test + 1;
|
||||
test += 1;
|
||||
```
|
||||
|
||||
Update your iterator statement in the `for` loop to use addition assignment.
|
||||
Update your iteration statement in the `for` loop to use addition assignment.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ Comments can be helpful for explaining why your code takes a certain approach, o
|
||||
|
||||
In JavaScript, you can use `//` to leave a single-line comment in your code.
|
||||
|
||||
Add a single-line comment above your function to remind yourself to change the code to a different kind of loop.
|
||||
Add a single-line comment above your `for` loop to remind yourself to change the code to a different kind of loop.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ dashedName: step-103
|
||||
|
||||
Just like addition, there are different operators you can use for subtraction. The <dfn>subtraction assignment</dfn> operator `-=` subtracts the given value from the current variable value, then assigns the result back to the variable.
|
||||
|
||||
Replace your iterator statement with the correct statement using the subtraction assignment operator.
|
||||
Replace your iteration statement with the correct statement using the subtraction assignment operator.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user