Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Tell us what’s happening:

I don’t understand where to exactly put the bracket value for rows

Your code so far


// User Editable Region

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

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Hi @KYM

You can access the value using bracket notation, such as array[0].
Use console.log and bracket notation to print the first value in your rows array.

You correctly access the value of the array.
It needs to go in the console log.

Happy coding

You already did it you used rows[0] use the same in your console.log();