Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

Tell us what’s happening:

Hi, I’m stuck at step 36 on Javascript - for…of loops

my answer is : for (const row of rows); {

Does anyone knows how to pass the sacred gates of the exercise?
thanks so much xx

Your code so far

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

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

let result = ""


// User Editable Region

for (const row of rows); {


// User Editable Region


console.log(result); }

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.1 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 36

HI @xpdt !

Welcome to the forum!

Look at the example code they gave again

for (const value of iterable) {

}

there is no semicolon after the parenthesis

plus they didn’t include a console statement inside the for of loop like you are trying to do here

reset the lesson and try again making sure to use the correct syntax that mirrors the example

once you fix that, then it will pass