fix(curriculum): add location of if statement to requirement and hint (#55762)

This commit is contained in:
Lasse Jørgensen 2024-08-07 05:39:59 +02:00 committed by GitHub
parent 77662f8ac0
commit a480ebdeb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/);