Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Tell us what’s happening:

hey! i trying to resolve 21st step and i got the message “Sorry, your code does not pass.”
what wrong in my code? i covered al the requirements
my code:
let rows = [“Naomi”, “Quincy”, “CamperChan”];
console.log(rows);
rows[2] = 10;
console.log(rows);

Your code so far


// User Editable Region

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


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Hello and welcome to the forum!
The way you’ve updated the array is correct- but, the array itself is already declared in the line 3, so there’s no need to declare it again in the editable region (same goes for the console.log() directly below it). Hope that helps!