Learn Introductory JavaScript by Building a Pyramid Generator - Step 71

Tell us what’s happening:

hi ive been at it for ages step 71 cant seem to figure it out please give a better example

Your code so far

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

function padRow(rowNumber, rowCount) {
  return " ".repeat(rowCount - rowNumber) + character.repeat(2 * rowNumber - 1) + " ".repeat(rowCount - rowNumber);
}


// User Editable Region

for (let i = 1; i <= count; i ++); {

// User Editable Region

  rows.push(padRow(i + 1, count));
}

let result = ""

for (const row of rows) {
  result = result + row + "\n";
}

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 71

you changed this, you may want to reset the step

look at the example to see what is the addition assignment, you need to use that

answer is in the example happy coding

what example you refering to im confused

the post you are answering to was written by yourself, so maybe try to remember what you meant then