Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Tell us what’s happening:

i have trouble with typing the correct syntax for this problem. i get the message “use bracket notation on the rows column”. I have done this but it still is incorrect. i am on step 21

Your code so far

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
console.log(rows[0]);

// User Editable Region

let row = ["Naomi", "Quincy", "CamperChan"];
row["CamperChan"] = 10;
console.log(row["CamperChan"]);

// 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/129.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Hello and welcome to the forum @mav-the-dev !
Below is the example for this step that can help you succeed.

array[1] = 25;
console.log(array); 

No need to declare the rows again. You have declared it earlier.
Use the example to complete the rows and bracket with the number location being updated. Remember it starts at 0 for the first position. Then, assign it 10.
The print as the example shows.

Hope this helps you.

Wishing you good progress on your coding journey. :slightly_smiling_face: