Learn Introductory JavaScript by Building a Pyramid Generator - Step 26

Tell us what’s happening:

let rows = [“Naomi”, “Quincy”, “CamperChan”];
rows array.push(“freeCodeCamp”);
console.log(rows);
Hello. There is a challenge in my code. I can’t finde out what is wrong. May I ask your opinion on this issue, please?

Your code so far

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

// User Editable Region

let rows = ["Naomi", "Quincy", "CamperChan"];
rows array.push("freeCodeCamp");
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/128.0.0.0 Safari/537.36 OPR/114.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 26

Hi. Your syntax is wrong here:

rows array.push(“freeCodeCamp”);

Look at the example code again, don’t use words from the example in your code, but apply it to the rows variable.

1 Like

Thanks. It is a real solution of the proble.