Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

i dont know where’s the error please 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(rows);
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; rv:127.0) Gecko/20100101 Firefox/127.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

1 Like

Hello @rayanelouzazna13 !
Consider this line of instructions.

Assign your existing rows.push()
1 Like

Assign your existing rows.push() to a new pushed variable, and log it.
In other words, you shouldn’t have rows.push() two times, and you should not log ‘rows’ according to the instructions.

2 Likes

Thank youuu, ive been struggling with this one for over an hour :grimacing:

1 Like