Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Tell us what’s happening:

I stuck on this step for few days. someone can help me because I don’t have any idea.

Your code so far


// User Editable Region

let rows = ["Naomi", "Quincy", "CamperChan"];
rows[0];
console.log(rows[0]);


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Hello there buddy!
In this step, you are required to print the first item in the array to your console. You did that in the last line.

What is making your code not pass is this line of code.

which only accessed the first item in the array but did not console it. That is not what is required per the instructions. Therefore, it would be a good idea to remove it so that you are left with the line that obeys the instructions.

1 Like

Thank you so much replying to me. I did it. If you didn’t reply to me I would still stuck on here. Thank you.

You are very much welcome! Keep doing this great work.

1 Like