Learn Introductory JavaScript by Building a Pyramid Generator - Step 19

Tell us what’s happening:

I have tried changing my rows declaration to be an array with the strings “Naomi”, “Quincy”, and “CamperChan” but its still showing error, what should i do?

Your code so far


// User Editable Region

let character = 'Hello';
let count = 8;
let array = ["Naomi", "Quincy", "CamperChan"];

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 19

hi there!

you are not using exect variable name for the array. recheck the instructions and correct the variable name, in thats you are memorizing the array ["Naomi", "Quincy", "CamperChan"]

please can you explain

your code was before:

let rows = [];

you added strings "Naomi", "Quincy", "CamperChan" to that array. but you also changed the name of that array from rows to array.

i understand now, thank you

1 Like