Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

Tell us what’s happening:

How to do the second exercise from javascript im not from england so i dont understand a bit of that text so speaking to u guys can u please tell me the answer?

Your code so far


// User Editable Region

let 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/131.0.0.0 Safari/537.36 OPR/116.0.0.0 (Edition std-1)

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 2

Welcome to the forum :wave:

You have copied the example. This is not the answer but a demonstration of the code we are learning in this step. You will never pass a step by copying this into the code editor.

For example, here is how you would declare a hello variable:

Use the same pattern but:

Use the let keyword to declare a variable called character.