Learn Introductory JavaScript by Building a Pyramid Generator - Step 18

Tell us what’s happening:

i’ve been doing this for over 30 minutes now and i cant seem to find what the problem is

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]); // prints [Naomi,Quincy,10]



// 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

Welcome to the forum @giorgosg039

Console message:

You should log the rows array.

The instruction:

Then print the rows array to your console.

Your code is printing the third array item to the console.
For this step you need to print the whole array to the console.

Happy coding

you may notice that this prints only 10 instead of the array in the comment, make it print the array

Thank you so much that was it