Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Tell us what’s happening:

I’m trying to understand what i got wrong but the feedback is confusing

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

1 Like

This will not print the rows array. It will only print the 3rd value in the array.

1 Like

Hi there!
The instructions is asking you to log the rows array to the console.
Currently you have logged the third element of rows array.
You have the example within the instructions:

console.log(array); 

You can log the array by referencing it’s name to the console.log().

1 Like

Thank You. One needs to be very observant when doing this.