mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-25 02:14:11 -05:00
fix(curriculum): update hint message Pyramid step 115 (#55330)
This commit is contained in:
@@ -17,7 +17,7 @@ You should call the `.push()` method of `rows` in your `else` block.
|
||||
assert.match(__helpers.removeJSComments(code), /if\s*\(\s*inverted\s*\)\s*\{\s*rows\.unshift\(\s*padRow\(\s*i\s*,\s*count\s*\)\s*\);\s*\}\s*else\s*\{\s*rows\.push\(\s*/);
|
||||
```
|
||||
|
||||
You should pass a `padRow()` call as the argument for your `.unshift()` method.
|
||||
You should pass a `padRow()` call as the argument for your `.push()` method.
|
||||
|
||||
```js
|
||||
assert.match(__helpers.removeJSComments(code), /if\s*\(\s*inverted\s*\)\s*\{\s*rows\.unshift\(\s*padRow\(\s*i\s*,\s*count\s*\)\s*\);\s*\}\s*else\s*\{\s*rows\.push\(\s*padRow\(/);
|
||||
|
||||
Reference in New Issue
Block a user