Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

Tell us what’s happening:

The error states “You should log your popped variable.” What am I missing?

Your code so far

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

// User Editable Region

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

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

Hi @arec1107 !

Welcome to the forum!

You are using the incorrect variable name here

The directions say to declare a popped variable
not declare a poppedVariable

once you fix that, then it will pass

hope that helps

2 Likes