Learn Introductory JavaScript by Building a Pyramid Generator - Step 25

Tell us what’s happening:

I can’t able to understand the question ,so I can’t clear the level

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/125.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 25

This is the line of code initially shown in this step. This is also the line of code you should modify by assigning it to the new variable.

What do you mean by assigning a new variable?

What do you mean by assigning a new variable?

you have already asked it, please give time to people to come back online

the new variable in question is pushed

1 Like

I am quoting the step which said:

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

So you should “assign” (using an equal sign) the value returned by rows.push() to a new variable called pushed and then add a log statement below that.

it says to assign a new variable and to log it so the answer would be:

mod edit

hi there, your answer would be incorrect. But either way, please do not respond to a question in the fCC forum by providing code answer. We prefer to answer people’s questions here with hints or suggestions to help them develop their own debugging skills.
If you need any help yourself, please post your own topic.

u have one extra line of code by removing it u get ur answer.