Tell us what’s happening:
let row = ;
for (let i = 0; i < 8; i = i + 1) {
console.log(i); // Log the value of i
row[i] = i; // Set row[i] to the value of i
} the say the code doesn’t log the value on i in the for loop
Your code so far
// User Editable Region
let row = [];
for (let i = 0; i < 8; i = i + 1) {
console.log(i); // Log the value of i
row[i] = i; // Set row[i] to the value of i
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 37