mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
fix(curriculum): add location of if statement to requirement and hint (#55762)
This commit is contained in:
parent
77662f8ac0
commit
a480ebdeb8
@ -9,11 +9,11 @@ dashedName: step-87
|
||||
|
||||
The <dfn>equality</dfn> operator `==` is used to check if two values are equal. To compare two values, you'd use a statement like `value == 8`.
|
||||
|
||||
Add an `if` statement to your loop. The statement should check if `done` is equal to `count` using the equality operator.
|
||||
Below `done++` inside your loop, add an `if` statement. The statement should check if `done` is equal to `count` using the equality operator.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should use an `if` statement in your loop.
|
||||
You should use an `if` statement in your loop. It should be added after `done++`.
|
||||
|
||||
```js
|
||||
assert.match(__helpers.removeJSComments(code), /while\s*\(\s*continueLoop\s*\)\s*\{\s*done\+\+;\s*if/);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user