Learn Introductory JavaScript by Building a Pyramid Generator - Step 34

Tell us what’s happening:

I’m getting really confused over this, it keeps saying ‘you should log the value of i’ but I have no idea where I’m going from… please help

Your code so far

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


// User Editable Region

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

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 34

To log the value of the variable, just use the console.log method and give the variable i as input.
What you are doing is assigning 0 to i and attempting to log that instead

use console.log (i); instead of console.log (i = 0)
hope this helps!

When you use console.log(i = 10), it prints 10 to the console. The task is to print the value of i each time the loop executes. But you are just re-assigning it to 10. Use console.log(i) to print the values of i.