Learn Introductory JavaScript by Building a Pyramid Generator - Step 37

Tell us what’s happening:

In the code below, it is running correctly. Unfortunately it continues to state "I need to declare the value of I in my for loop. I have tried several different approaches with the same results.

for (let i = 0; i < 8; i = i + 1) {
console.log(i);

Your code so far

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

// User Editable Region

for (let i = 0; i < 8; i = i + 1) {
    console.log(i);
}

// User Editable Region

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/18.0 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 37

You should not have changed the existing code in the for condition. Please reset to restore the code and then add the log statement only

Wow it is always something simple lol. Thank you for the tip.

1 Like