Skip to content

Commit a480ebd

Browse files
authored
fix(curriculum): add location of if statement to requirement and hint (freeCodeCamp#55762)
1 parent 77662f8 commit a480ebd

File tree

1 file changed

+2
-2
lines changed
  • curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator

1 file changed

+2
-2
lines changed

curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/6610bf6fa14d700beed1b109.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ dashedName: step-87
99

1010
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`.
1111

12-
Add an `if` statement to your loop. The statement should check if `done` is equal to `count` using the equality operator.
12+
Below `done++` inside your loop, add an `if` statement. The statement should check if `done` is equal to `count` using the equality operator.
1313

1414
# --hints--
1515

16-
You should use an `if` statement in your loop.
16+
You should use an `if` statement in your loop. It should be added after `done++`.
1717

1818
```js
1919
assert.match(__helpers.removeJSComments(code), /while\s*\(\s*continueLoop\s*\)\s*\{\s*done\+\+;\s*if/);

0 commit comments

Comments
 (0)