Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

Tell us what’s happening:

I have something missing here… Need help checking my code

Your code so far


// User Editable Region

let character .("hello");

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Mobile Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

Welcome to the forum :wave:

You aren’t missing anything, you have too much.

The example code declares a variable called hello:

let hello;

You need to declare a variable called character. So your code should be almost the same as the example but instead of hello you will declare character.

The example code doesn’t have a dot, brackets, quotes or anything like that, so neither should yours.