Learn Introductory JavaScript by Building a Pyramid Generator - Step 102

Tell us what’s happening:

i thought to had entered the code correctly, I see the upside-down pyramid, but I still cant pass the test, what am I doing wrong?

–for (let i = count; i > 0; i–) {
rows.push(padRow(i, count));} —

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);
}

// TODO: use a different type of loop
/*for (let i = 1; i <= count; i++) {
  rows.push(padRow(i, count));
}*/

/*while (rows.length < count) {
  rows.push(padRow(rows.length + 1, count));
}*/


// User Editable Region

for (let i = count; i > 0; i--) {
  rows.push(padRow(i, count));}

// User Editable Region


let result = ""

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

console.log(result);

Your browser information:

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 102

You should not have changed this line.
Reset to restore the original code and retry.

what does that mean retry, You are vague. i don’t I want the answer I need with direction

you did a good job with other things, but you changed that line and you should not have done that. To pass the test reset the step, do the same things but without changing that line