From ca747c7da8d58ce4454edfe48ed68a45ec0487d3 Mon Sep 17 00:00:00 2001 From: c0d1ng_ma5ter Date: Thu, 6 Feb 2025 08:50:05 -0600 Subject: [PATCH] fix(curriculum): clarify requirements for padRow argument (#58293) Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> --- .../660f34626216270c682e2f7b.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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--