Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Tell us what’s happening:

my code is correct but don’t know why still geting error . “You should use bracket notation on the rows array again” . if anyone should knows the answer please explain me

Your code so far


// User Editable Region

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
rows[2] = 10;
console.log(count);
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/148.0.0.0 Safari/537.36 Edg/148.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/learn-introductory-javascript-by-building-a-pyramid-generator/660f07d231941bc11719f664.md at main · freeCodeCamp/freeCodeCamp · GitHub

hello @dhavalsavale29 welcome to the forum!

It seems like the seed-code for this challenge was changed. Kindly use the Reset Button (image) located at the bottom of the challenge to reset the challenge and restore the seed-code and then try again.

Resetting the challenge will delete all of your current progression for this step. Make sure to copy the important bits of your current code before using the Reset Button, and paste it afterwards.