Learn Introductory JavaScript by Building a Pyramid Generator - Step 66

Tell us what’s happening:

Help in Javascript Step 66 in Pyramdiengenerators i dont know

Your code so far

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

function padRow(rowNumber, rowCount) {
  return character.repeat(rowNumber);
}



// User Editable Region

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

// User Editable Region


let result = ""

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

console.log(result);

Your browser information:

User Agent ist: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 66

Can you please talk to us in your own words about what you don’t know or how you’re stuck?

Welcome to the forum @d.hink

Replace the character.repeat(i + 1) in your .push() call with a function call for your padRow function.

The padRow function call should not have any arguments.

For next time, describe the issue in your own words. Learning to communicate problems is a part of becoming a web developer.

Happy coding