Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

Tell us what’s happening:

I use semicolons and again it says that i need them.

Your code so far


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

Hi there, welcome to fcc community.

The instruction only asks us:

Use the let keyword to declare a variable called character.

It doesn’t ask us to assign the string 'hello' to character variable.

hello! Yes I tried that way too but again is incorrect and different methods.

The instruction said:

Use the let keyword to declare a variable called character.

The variable name is character, not hello.

For the next time, instead of posting screenshoot, you should post your updated code by put your code between 2 line of ``` (3 back ticks) (the back tick key is usually right under the Esc key on your keyboard) , like this:

```
# your code here
```

or you can use the Preformatted Text button (the one with </> icon) (or press Ctrl + E):

Thank you for your help! I’m new here i’ll learn.

1 Like