Learn Introductory JavaScript by Building a Pyramid Generator - Step 5

Tell us what’s happening:

the code requires us to use character twice how do we execute that request

Your code so far


// User Editable Region

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



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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 5

Try not to do anything that the instructions don’t specifically ask you to do

so do we use the wording given by the instructions

assign the value "World" to your character variable.

You did this, but then you added another line that the instructions didn’t ask for.

thank you now i understand

1 Like