Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

Tell us what’s happening:

What am i doing wrong?I am confused.i KNOW CONSOLE.LOG NOT SHOWINGi deleted that line cause it said it was wrong

Your code so far

let character = 'Hello';
let count = 8;

// User Editable Region

let rows = ["Naomi", "Quincy", "CamperChan"];
rows.push("freeCodeCamp");
let popped = rows.pop("freeCodeCamp");

console.log(rows);


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

You have two things here

The first things, is that the pop method does not take any arguments like this

remove that string

pop will always remove the last element from an array

the second issue is here

it wants you to log your popped variable.
right now you are logging the rows array.

fix those things and the test will pass

does it what poppedVariable or the variable that is popped

The correct variable name is popped.
not poppedVariable