You should concatenate row to your result variable.
Your code so far
const character = "#";
const count = 8;
const rows = [];
for (let i = 0; i < count; i = i + 1) {
}
let result = ""
result = row + "marks"
// User Editable Region
for (const row = + result of rows ) {
row = + result;
}
// User Editable Region
console.log(result);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 41
Here is a comparison of the original code and your code.
The code in red is the original code, the code in blue is your code.
The code in magenta is the overlap.
You appear to have modified the for …of loop.
This is why you have the following message in the console.
Also the three dots indicate you have an undeclared variable on line ten.
Please reset the step to restore the original code. Then in the body of the loop add the required code. Make sure you refer to the example given in the instructions.
I just want to say, if your code is exactly the same as tutroial videos but still doesn’t pass, try switching browsers. (I’ve had it happen a few times where switching from Chrome to Safari made the same code pass on Safari.)