Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

Tell us what’s happening:

for (let i = 0; i < count; i++){console.log(i)
}; in step 36 Javascripts algorithms ad data structures this code does not work .In the other hand in the console it works

Your code so far

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


// User Editable Region

for (let i = 0; i < count; i++){console.log(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/126.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

reset the step, you changed too much. Only follow the instructions and do not add more code than that

Welcome to the forum!

You made a good attempt.

I suggest looking at the example bees = bees + 3 provided to us for this step
and compare it with your code

Where the i++ is in your code should be similar to the example, only using i instead of bees.

I will admit, I made the same error as you have in your code.

I hope this helps you!

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