Learn Introductory JavaScript by Building a Pyramid Generator - Step 41

Tell us what’s happening:

Guys the site keeps saying to me to keep the body of the loop empty but it is empty i have even asked chat gpt but he just gave me the code i had already wirtten. Pls Help.

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 OPR/116.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 41

Hi there and welcome to the forum!
Look at the example code again:

for (const value of iterable) {

}

Is there any semicolon?

HO — my bad. ty though apreciatte it

You’re welcome, but please don’t use harsh words here on the forum. Thank you

okok sry wont happen again

1 Like