Learn Introductory JavaScript by Building a Pyramid Generator - Step 32

Tell us what’s happening:

My code does not work no it is step 32 now but here is my code const character = “#”; // The character to repeat
const count = 8; // The number of times to repeat the character
const rows = ; // The array to store the repeated characters

// Create a for loop to iterate ‘count’ times
for (let i = 0; i < count; i++) {
console.log(i); // Log the current value of i
rows.push(character); // Add the character to the array
Can i have some help pls
}

Your code so far


// User Editable Region

const character = "#"; // The character to repeat
const count = 8; // The number of times to repeat the character
const rows = []; // The array to store the repeated characters

// Create a for loop to iterate 'count' times
for (let i = 0; i < count; i++) {
    console.log(i); // Log the current value of i
    rows.push(character); // Add the character to the array
}


// User Editable Region

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 32

why did you add this line?

why do you have so many comments?

I have removed the comments and the last line const character = “#”;
const count = 8;
const rows = ;

for (let i = 0; i < count; i++) {
console.log(i);
}

for (let i = 0; "condition"; "iteration") {
}

Above is the starting code. You need to change only the "condition" to i < count.
Why you modified your other code?