Learn Introductory JavaScript by Building a Pyramid Generator - Step 38

Tell us what’s happening:

{Replace your log statement with a statement to push i to your rows array. }
what does the above question means? Help me out .

Your code so far

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


// User Editable Region

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

// User Editable Region

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/16.5 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 38

If you click the reset button, the original code will be shown which was this:

for (let i = 0; i < count; i = i + 1) {
  console.log(i);
}

So when they said to replace the log statement, they meant that instead of logging i which is what this statement is doing, instead you should push i to the rows array. (So erase the log statement and create a push statement instead)