Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Tell us what’s happening:

my console log is missing brackets here is it okaytoday

Your code so far


// User Editable Region

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
console.log(6);

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

What is 6 inside the console supposed to represent?

You need to use bracket notation to access the first value of the array. The instructions give an example of how to access the first value of a variable called array:
array[0]

Follow the example to do the same with your rows array, and log that to the console instead of “6” as you have done.