Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

my code will not pass the test I dont undestand why.
my code = let pushed rows.push(“freeCodeCamp”);
console.log(pushed);
In the console I can see that "freeCodeCamp"is added to the list but still not passing the test.

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 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Welcome to the forum @pythonic.rene

Assign your existing rows.push() to a new pushed variable, and log it.

You did not assign to the existing rows.push()

Happy coding

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