Learn Introductory JavaScript by Building a Pyramid Generator script.jsEditor step 21

hello guys! i need help D:
i can’t understand this step… I’ve search the forum but i didn’t find the complete code.
i wrote this and i can’t see the mistake

PD: i’m new in all this of java and staffs… :confused:

let character = ‘Hello’;
let count = 8;
let rows = [“Naomi”, “Quincy”, “CamperChan”];
console.log(rows[0]);

// User Editable Region

let rows = [“Naomi”,“Quincy”,“CamperChan”];
rows[CamperChan] = 10;
console.log(rows);

// User Editable Region

Learn Introductory JavaScript by Building a Pyramid Generator script.jsEditor STEP 21

1 Like

Hi and welcome to the forum.

Please edit your post and include a link to the step so we can read your question in context.

1 Like

you have let rows twice, you can’t do that, remove one of them

1 Like

Hi! You have to write inside rows bracket number 2 not camperChan.
code removed by mod

1 Like

Gracias, looking at your code. I figure out the challenge. dirtygreb7

hey @mamtamukherjee1987

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

2 Likes

Thank you. Next time I will keep in mind.

1 Like

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