Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

Now log your character variable to the console again. You should see the string “Hello”, then the string “World”, in the console.

Need help with this task
Step 6

Your code so far


// User Editable Region

log: console.log(character = "Hello"
 console.log(character) ;
character = "World";


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

log: at the beginning of the line is wrong syntax, delete it
the console.log is missing the closing parenthesis )
Do not put the assignment inside console.log, first assign then log

Maybe it’s better if you reset the code, and follow the instructions carefully:

Now log your character variable to the console again. You should see the string "Hello" , then the string "World" , in the console.

to log means you need to use console.log, and you need to do it after the reassignment

You have modified your code. Reset your challenge and try to add a new console.log() call with character variable