Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Tell us what’s happening:

// running tests
2. You should access your rows array.
5. You should log the first element of your rows array.
// tests completed
// console output
Naomi
Quincy
CamperChan
this is the problem and this is my code

Your code so far


// User Editable Region

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

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Can you talk about how you’re stuck debugging this problem?

i dont know why it is showing this errors while chatgpt is saying it is good to go

ChatGPT doesn’t actually know anything, so we can safely ignore it.

Other than asking GPT, how have you tried to debug?


I see two things that stand out to me.

I don’t think these were requested.

Why the extra space in this line?

my console is showing me this errors
2. You should access your "rows"array.
3. 5. You should log the first element of your "rows " “array”.

Yes, I can see that. But I cannot see your thoughts. I need you to tell me how you’re stuck figuring out what’s wrong so I can give help.

now it is showing me
You should log the first element of your “rows” array.
what does this means

You are still not telling me how you are stuck. Please don’t just copy-paste what the computer is saying at me.

Did you look at the 2 problems I pointed out? If so, what is your new code?

1 Like

I don’t know how to solve this problem that You should log the first element of your “rows” array.

Again, please stop copy-pasting the error message at me.

If you are unable to do any debugging whatsoever, you may be moving through the content too quickly.

Please answer these two questions.

let character = 'Hello';

let rows = ["Naomi", "Quincy", "CamperChan"];

console.log (rows[0]);

this is my code please tell what is the problem in this because i don’t see any problem in this

Being able to talk about how you are stuck is a critical programmer skill. “fix it for me” as an approach will leave you stuck and unable to grow your skills.

You still have an extra space in here. Why did you put a space in this line?

thanks I am looking in the code and don’t realize this slightest mistake THANKYOU VERY MUCH