Learn Introductory JavaScript by Building a Pyramid Generator - Step 33

Tell us what’s happening:

Your for loop should increase i by 1 on each iteration

Your code so far

const character = "#";
const count = 8 + 3;
const rows = [];
 let i = i+1

// User Editable Region

for (let i = 0; i < count.length; i = i++) {
  i++;
}
console.log (count)

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 33

the code i++ is short for i = i + 1. Everytime you write it, i will increment by one. You’ve written it twice, so i will increment by 1 twice. You should only write it once in a loop, unless you have a specific reason.

i = i++
This is invalid because it becomes:
i = i = i + 1