diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f34626216270c682e2f7b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f34626216270c682e2f7b.md index a09f4e42f14..ae767f1be1c 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f34626216270c682e2f7b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f34626216270c682e2f7b.md @@ -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--