Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Tell us what’s happening:

How can I print the first value in my array to my console. page 20
let rows = [“Naomi”, “Quincy”, “CamperChan”];
console.log (rows[0])

Your code so far


// User Editable Region

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

// 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/128.0.0.0 Safari/537.36 Edg/128.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Hi there, welcome back!

Try removing the space between the word log and the parenthesis.

I remove the space but it’s not working

Please share your updated code

there should be no space character between the word log and the parenthesis.
When that space is removed, your code worked.
Please try again.

Can you do it and send them to me because it’s not working for me

I can’t do that as we are not here to write code for you but to help you learn to do it alone.
If you are still stuck, copy your code and paste it in your next reply in between two rows of three backticks like below:
```
code in the middle
```