Learn Introductory JavaScript by Building a Pyramid Generator - Step 28

Tell us what’s happening:

I have problems with exercise 28,
I can´t undertand the error, I write
for (let i; i<4; i++){
}

but it show a message
"the first component of your fot lopp should be the string “iterator”, the second “condition” and trird “iteration”.

Can some explain me, please.

I’ll appreciate :D. Thanks

Your code so far

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


// User Editable Region

for (let i; i>4; i++){};

// 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 28

oh sorry
for (let i=0; i>4; i++){};

it was a typo error.

Nevermind, let’s see:
"the first component of your for loop should be the string “iterator”, the second “condition” and trird “iteration”.

What’s confusing here? Put exactly these strings into the loop

i didn’t imagine it was literally. Thanks!

1 Like

Writing exactly like this works for me:

Solution is removed by moderator

Please don’t post a solution, it is not allowed here on the forum. Only hints, advices, useful links are welcome

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