Learn Introductory JavaScript by Building a Pyramid Generator - Step 38

Tell us what’s happening:

i am stuck here. i have a log but not sure where to add the i.

Your code so far

const character = "#";
const count = 8;
const rows = [];


// User Editable Region

for (let i = 0; i < count; i = i + 1) {
.push(i);
}

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 38

You have to include the array you’re pushing i to.

is that inside the ()?

No, before the method.

array.psuh(what to push)

Here’s exactly what do type and how it should look like.

code removed by moderator

Ihope you find it helpful. Happy coding!! :smiley:

hi @jpacheco.jls

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.

Thank you for the feedback, but if you’re looking forward to avoiding spoilers, then the instructions for the exercises should be even clearer; otherwise, you will only receive confusion and frustration. Remember, not everyone has the same capabilities and competencies, especially on a certification that is not fully translated into Spanish, which, by the way, blocks the learning and comprehension of the topics due to the language barrier.

1 Like

you are welcome to create issues about specific steps that need clearer language.

Please still do not post solutions