Learn Introductory JavaScript by Building a Pyramid Generator - Step 39

Tell us what’s happening:

sorry, your code does not pass.try again You should push your character variable.

Your code so far

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


// User Editable Region

for (let i = 0; i < count; i = i + 1) {
  
  let character = []
}
characters.push(character);
console.log(characters); 

// 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/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 39

Instead of pushing i to the array, push the value of your character variable.

What is your array?