Learn Introductory JavaScript by Building a Pyramid Generator - Step 18

Tell us what’s happening:

Respected team,
As per instructions, in JavaScript step 18, I have wrote below code but it’s not getting passed telling to use bracket notation, I think I have already used bracket notation for this. below is my code .
Code:
rows[2] = 10;
console.log(rows[2]);

I am trying to change the third element in array to value 10. please check and suggest…

Your code so far

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

// User Editable Region

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

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 18

Thank you so much bebop76 for the quick support. It’s now resolved…