Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

need help in checking my code
i can’t assign the character to the variable

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

this is the line that the step wanted you to assign to a variable.

i have done that but still cant get the code correct

it says You should assign

rows.push("freeCodeCamp")

to your

pushed

variable.

yes it does.
reset and do that without rewriting the code rows.push("freeCodeCamp")

it is already there in the editor (when you reset). So you don’t need to re-write it.

You should assign rows.push("freeCodeCamp") to your pushed variable.

i have assigned the character to the variable but i still didn’t pass the code

Did you make any changes to the code you shared above? If yes, please copy the code in your next reply for further feedback.