Learn Introductory JavaScript by Building a Pyramid Generator - Step 38

Tell us what’s happening:

what am I missing? why is it saying .push() should happing in your for loop

Your code so far

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


// User Editable Region

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 OPR/109.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 38

don’t create a variable for this step (they didn’t ask for it)

even if it changes to rows.push(i) it says " Your .push() should happen in your for loop."

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.