Learn Introductory JavaScript by Building a Pyramid Generator - Step 27

Tell us what’s happening:

hi guys
who can help me with step27 of jvscript
how can i assign my new pushed variable with rows.push(“feeCodeCamp”)
??!!

Your code so far

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];

// User Editable Region

rows.push("freeCodeCamp");
let pushed;
console.log("pushed");
pushed=[ 'Naomi', 'Quincy', 'CamperChan' ];
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; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 27

Don’t add all this. You were given 2 lines to work with and only need 2 lines.

These three lines are close, but you need to capture the return value from push like you did with pop here

1 Like

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