Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

Tell us what’s happening:

My ‘i’ every time add + 1 to the i, but i had a problem “Your for loop should increase ‘i’ by 1 on each iteration” i can change i = i + 1 to the i++ but i have the same problem

Your code so far

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


// User Editable Region

for (let i = 0; i < 5; i = i + 1 ) { 
  
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

The starting code for this step is:

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

}

You should only be modifying the string “iteration”, to increment the variable i. You have made another unnecessary modification to this code.