Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

Tell us what’s happening:

Help me please!!I am not sure if i am over thinking this one.I have tried just about every way and am confused.

Your code so far

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

// User Editable Region

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


// 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

  • The instruction asks you to declare popped variable. You declared poppedValue variable

  • rows.pop() takes no agruments. You passed "freeCodeCamp" as an agrument for rows.pop()

  • The instruction asks you to log popped variable. You logged "freeCodeCamp" string.