Learn Introductory JavaScript by Building a Pyramid Generator - Step 37

Tell us what’s happening:

tried everything by putting the “let i” before “for” and but impossible I even used ChatGpt to correct myself but it tells me that it’s ok

Your code so far

const character = "#";
const count = 8;

// User Editable Region

const rows = [];
let i
for (i = 0; i < count; i = i + 1) {
console.log(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/131.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 37

Welcome to the forum @idrissemoha2007

You removed the let declaration from the for loop.

Please reset the step to restore the seed code, then add the console log without modifying any of the other code.

Happy coding