Learn Introductory JavaScript by Building a Pyramid Generator - Step 18

Tell us what’s happening:

Please i need help on selecting the 3rd element, everytime i do it i get i t wrong

Your code so far

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];

// User Editable Region

 


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 18

what ahve you tried so far?

I was confused too because they didn’t explain how to print an entire array to the console and the error message wasn’t helpful because it kept talking about using more brackets! I had to look this up elsewhere.

To print the entire array to the console, you just put the array’s name inside the ( ):

console.log(rows);

1 Like

In what context are you asking? Are you referring to specific tasks or experiments I’ve conducted?

I am asking to the person that started this thread, as they say that everytime they try they get it wrong, but they haven’t shared anything of what they tried

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.