diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f09a2694b59c3a10ee304.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f09a2694b59c3a10ee304.md index 986974996e1..12ab8985dcc 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f09a2694b59c3a10ee304.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f09a2694b59c3a10ee304.md @@ -7,7 +7,7 @@ dashedName: step-20 # --description-- -For now, remove your first console log and your `rows[2]` assignment. Leave the second `rows` log statement for later. +For now, remove your first console log and your `rows[rows.length - 1]` assignment. Leave the second `rows` log statement for later. # --hints-- @@ -17,10 +17,10 @@ You should remove your `console.log(rows[0])` statement. assert.notMatch(code, /console\.log\(\s*rows\[\s*0\s*\]\s*\)/); ``` -You should remove your `rows[2]` reassignment. +You should remove your `rows[rows.length - 1]` reassignment. ```js -assert.notMatch(code, /rows\[2\]/); +assert.notMatch(code, /rows\[\s*rows\.length\s*-\s*1\s*\]/); ``` You should not remove your `console.log(rows)` statement.