Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

Tell us what’s happening:

I should " Use that syntax (bees = bees + 3;) to replace your "iteration" string with a reassignment statement that increases i by one. "

I replaced the syntax ‘iteration’ by i= i +1, isn’t it a reassignment statement?

Your code so far

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


// User Editable Region

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

Yes that is good but remove the semicolon

1 Like

Here you must only remove the semicolon from the “i = i + 1;” statement in the for loop iterator. Essentially, don’t put a semicolon on the iterator part of a for loop.

1 Like