diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md index 592fc86ccbf..22f0d0e20e8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md @@ -18,19 +18,19 @@ In your `for...of` loop, use the addition operator to concatenate the `row` valu You should use the concatenation operator on your `result` variable. ```js -assert.match(code, /result\s*\+/); +assert.match(code, /(?:result\s*\+|\+\s*result)/); ``` You should concatenate `row` to your `result` variable. ```js -assert.match(code, /result\s*\+\s*row/); +assert.match(code, /result\s*\+\s*row|row\s*\+\s*result/); ``` You should assign the result of your concatenation back to the `result` variable. ```js -assert.match(code, /result\s*=\s*result\s*\+\s*row;?/) +assert.match(code, /result\s*=\s*(result\s*\+\s*row|row\s*\+\s*result);?/); ``` # --seed--