Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Tell us what’s happening:

I have tried below but all ways getting following error and can not go to the next steps.

rows[2]=10;
console.log(rows[2]);

what is going wrong. I am getting “you should use bracket notation on the rows”??

Your code so far

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

// User Editable Region

console.log(rows);
console.log(rows[2]=10);

// User Editable Region

Your browser information:

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

They want you to do this little bit first.
Then in the following line log the whole array.

– solution code removed

1 Like

This post was 4 months old, probably moved on already.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.