Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

Tell us what’s happening:

I am stuck on this lesson, what couldbe wrong with my code?

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();
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 Edg/124.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 22

Instructions:
Declare a popped variable, and assign it the result of rows.pop(). Then, log your popped variable.

Your first line is correct. In the console.log() you need popped variable, instead of rows.

That is extra and wrong formation.
@eduguvasu

1 Like