Tell us what’s happening:
imma newbie use this web course. i don’t really sure like the question want it. so can you help me how this web question roleplay ?
Your code so far
// User Editable Region
let star = '*';
// 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/132.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 2
Welcome to the forum 
Good start but:
Use the let
keyword to declare a variable called character
.
Your variable will need to be called character
instead of star
. You need to do exactly what the instructions say.
Also, you do not need to assign a value, so you do not need this part: = '*'
. Just like the example, let
and the name of the variable.:
let hello;
2 words, that’s all! I hope this helps
i was tried. but it still wrong. i’m just write let hello;
and the machine said " // running tests 2. You should use
character
in your code. 3. You should use
let
to declare a
character
variable. 4. Your declaration should end with a semicolon. // tests completed"
Ray13
4
Why do you write hello
?
The instructions request to declare a variable called character
let hello;
is an example of the pattern to follow (syntax). It’s not the answer. We don’t share answers on the forum.
let hello;
creates a variable called hello
.
Use that pattern to create a variable called character
okay. i’m sorry. thankyou BTW
1 Like