Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

Test error states "You should assign <"rows.push(“freeCodeCamp”)> to your variable. I don’t see how I havent done that.

Your code so far

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];

// User Editable Region

rows.push("freeCodeCamp");
let pushed = rows.push("freeCodeCamp");
console.log(pushed);

// User Editable Region

let popped = rows.pop();
console.log(popped);
console.log(rows);

Your browser information:

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Remove the first row.push() statement

1 Like

UPDATE: I removed the rows.push("freeCodeCamp"); from the user editable region and that fixed the issue