Learn Introductory JavaScript by Building a Pyramid Generator - Step 31

Tell us what’s happening:

for (let i =i+1; i < count;1) {

} this is my code kindly tell why its not running??

Your code so far

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


// User Editable Region

for (let i =i+1; i < count;1) {

}

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 31

Instructions for this step is:
For example, bees = bees + 3 would increase the value of bees by three.

Use that syntax to replace your "iteration" string with a reassignment statement that increases i by one.

You need to assign i to i and increase it’s value by 1.
@neermalik1616

1 Like

thanks for your help appreciated.

1 Like

Your welcome, happy Coding.

1 Like

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