Learn Introductory JavaScript by Building a Pyramid Generator - Step 27

Tell us what’s happening:

Getting the correct result, and using the .pop() method but not being accepted. I can’t see what is incorrect.

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(rows);
console.log(popped);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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 27

Hello and welcome to the forum @zzxdchzx8c !

I think it there should not be anything in the function rows.pop().

Wishing you good progress on your coding journey. :slightly_smiling_face:

1 Like

hi there!

you have modified your existing code .
the starting code for the challenge was;

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

console.log(rows);

also here you have rows within the .pop(rows) pop method, that is not needed. reset the challenge and try again.

1 Like