Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

My error message is telling me I should assign rows.push(“freeCodeCamp”) to the new pushed variable.

I believe I did that or I must be missing something thats right in front of me. I already completed this lesson but went back to redo it for extra practice. I can’t see what I am missing.

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

you now have two lines with rows.push(“freeCodeCamp”) when you started out with one.

Remove the top one which you no longer need.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.