Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

Hey there! somebody can help me please? i realice the instructions step by step but the console doesn’t take it for me. It´s JavaScript and I just started. TY :grin::heartpulse:

Your code so far



// User Editable Region

let rows = [];

let pushed = rows.push("freeCodeCamp"); // Assign return value of .push() to pushed

console.log(pushed); // Log pushed (should output 1)



// 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/133.0.0.0 Safari/537.36 Edg/133.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

1 Like

You appear to have inadvertently modified your rows variable.
It should be let rows = ["Naomi", "Quincy", "CamperChan"];

Other than that, your code looks correct.

1 Like

Hi there! Try removing this line

2 Likes

TYSM! it´s worked!

2 Likes

ok
thank you :sunglasses: :smiling_face:

1 Like