Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

I really need your help.
I’ve done everything I need to, but my code won’t go through.
Can anyone help me?

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);
console.log(rows);

// 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/128.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

you should push only once, not twice

Unfortunately, I get this message: You should assign rows.push(“freeCodeCamp”) to your pushed variable.

what is your code now?

Sorry here’s my code:

let rows = [“Naomi”, “Quincy”, “CamperChan”];
rows.push(“freeCodeCamp”);
let pushed = rows.push(“freeCodeCamp”);
console.log(pushed);

what did you change? you are still pushing twice

I’ve found the error.
Thanks for your help

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

We have blurred this solution (with [spoiler][/spoiler] tags) so that users who have not completed this challenge can read the discussion in this thread without giving away the solution.

Ideally, you should not share solutions on the forum at all.