Learn Introductory JavaScript by Building a Pyramid Generator - Step 42

Tell us what’s happening:

i have tried writing the code but the error keeps keeping coming up, it would be nice if i could get some help.

let result = “”;

for (let row of rows) {
result + row
result= row;

}

Your code so far

const character = "#";
const count = 8;
const rows = [];

for (let i = 0; i < count; i = i + 1) {
  rows.push(i);
}




// User Editable Region

let result = "";

for (let row of rows) { 
  result + row
result= row;

}

// 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/137.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 42

You have changed the given code, so please reset this step and try again. Follow the hello example and add only the code that was asked.