Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

Tell us what’s happening:

I honestly didn’t understand what I should do, I tried to create a variable with let and it didn’t work.

Your code so far

let character = "hello ";


// User Editable Region

let character = "hello ";

// 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/126.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

you created a character variable and you assigned hello to it.
They didn’t ask for that. They just wanted you to declare the variable.

1 Like

Hello and welcome to the forum.
The instruction states that you should use the let keyword to declare a variable called character. No strings should be added.
Example: let first;