fix(curriculum): clarify requirements for padRow argument (#58293)

Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
c0d1ng_ma5ter
2025-02-06 08:50:05 -06:00
committed by GitHub
parent 171c629333
commit ca747c7da8

View File

@@ -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--