mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-03 10:01:47 -04:00
fix(curriculum): clarify requirements for padRow argument (#58293)
Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,7 @@ A function is called by referencing the function's name, and adding `()`. Here's
|
||||
test();
|
||||
```
|
||||
|
||||
Replace the `character.repeat(i + 1)` in your `.push()` call with a function call for your `padRow` function.
|
||||
Replace the `character.repeat(i + 1)` in your `.push()` call with a function call for your `padRow` function. Do not add any arguments to it yet.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -34,7 +34,13 @@ assert.notMatch(__helpers.removeJSComments(code), /push\(\s*character/);
|
||||
You should call `padRow` in your `.push()` call.
|
||||
|
||||
```js
|
||||
assert.match(__helpers.removeJSComments(code), /push\(\s*padRow\(\s*\)\)/);
|
||||
assert.match(__helpers.removeJSComments(code), /push\(\s*?padRow\((.+?)?\)\)/);
|
||||
```
|
||||
|
||||
You should not have arguments in your `padRow` call.
|
||||
|
||||
```js
|
||||
assert.match(__helpers.removeJSComments(code), /push\(\s*?padRow\(\s*?\)/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user