Learn Introductory JavaScript by Building a Pyramid Generator - Step 41

Tell us what’s happening:

stuck at this step.
system saying should declare a row variable but i did.
can anyone help?

Your code so far

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

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


// User Editable Region

let result = ""
for(const value of 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/131.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 41

Hi there!

You declared the value variable and assigned it row.

You need row variable of rows.

Read the instructions again:
Create a for…of loop to iterate through your rows array, assigning each value to a row variable.