Learn Introductory JavaScript by Building a Pyramid Generator - Step 33

Tell us what’s happening:

at stepp 33 with the line
for (iterator; condition; iteration) {logic;}
I need to make a for loop similar to this
mine is:
for (“iterator”:“condition”:“iteration”:){}
and it is still wrong it gives me atu running test:
4.The third component of your for loop shoud be the string “iteration” wich is by any means and
5.The body of your for loop should be empty wich again is so i do not understand where i went wrong

Your code so far


// User Editable Region

const character = "#";
const count = 8;
const rows = [];
for ("iterator"; "condition"; "iteration";){} 

// 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/128.0.0.0 Safari/537.36 OPR/114.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 33

do not add the semicolon after the iteration

1 Like