Learn Introductory JavaScript by Building a Pyramid Generator - Step 30

Tell us what’s happening:

i write a correct code but it dosent works please help me

the error output is :

// running tests
Your for
loop should use
i < count
as the condition.
// tests completed // console output Potential infinite loop detected on line 5. Tests may be failing because of this.

Your code so far

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


// User Editable Region

for (let i = 0; i < count ; "iteration") {

}

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 30

you have an extra space here, remove the space before the semicolon

for (let i = 0; i < count; “iteration”) {

}

i did the same but it’s still not passing.

Please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.

yes its not passing what is the answer

Welcome to the FCC forum. Follow the above instructions.

@bhargavsrk495