Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

the problem is I cannot pass the question however my code should run properly

Your code so far

let character = 'Hello';
let count = 8;

// User Editable Region

let rows = ["Naomi", "Quincy", "CamperChan"];
rows.push("freeCodeCamp");
let pushed;
pushed = rows.push("freeCodeCamp");
console.log(pushed);
let popped = rows.pop();
console.log(popped);
console.log(rows);


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Hi @Zakizade

But what does .push() return? Assign your existing rows.push() to a new pushed variable, and log it.

You do not need to type out another rows.push()

Please reset the step to restore the original code.
Then before rows.push() code, and on the same line, declare and assign it to the pushed variable.

Make sure to include the console log below it.

Happy coding