Learn Introductory JavaScript by Building a Pyramid Generator, step 20

This is what I’m geting in my console " // running tests You should use bracket notation on the

rows

array again. You should access the third element of the

rows

array. You should use the assignment operator on the third element of the

rows

array. You should assign the value

10

to the third element of your

rows

array. You should log the

rows

array. // tests completed // console output Naomi 10"
and this is what my codes looks like"let character = ‘Hello’;
let count = 8;
let rows = [“Naomi”, “Quincy”, “CamperChan”];
console.log(rows[0]);
rows[3] = 10;

console.log(rows[3]);"
if my code looks like the example what am I doing wrong?

Post link to the challenge step

First your code is not in the correct order. Reset your code and

rows[3] = 10;

Above index is 4th element of the rows array = 10. Because array index strats with 0 index value. Therefore 0 is considered as first element of an array.