Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

Tell us what’s happening:

it keeps tellling me to log my popped variable , i have usd poppedValue and poppedVariable

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();
console.log("poppedValue");
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/124.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

HI @kcuddiie !

Welcome to the forum!

The directions want you to declare a popped variable
not a poppedValue or poppedVariable

also, for the log statement, you should have quotes for your variable name like this

once you fix those things, then it should pass

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.