Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

Pls I need help with this part of my javascript seems to toy with my head

Your code so far

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

// User Editable Region

secondCharacter = "World";
console.log(secondCharacter);

// User Editable Region

console.log(secondCharacter);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

what issue are you having?

you need to assign character to secondCharacter, do you have doubts about this assignment?

pls can I at least see what you mean

you have already used the assignment operator multiple times

the thing on the right of the assignment operator will be a variable this time

yes I get this but when I open console what variable would be inside?

in the console you would not see a variable, you would see the value that is inside the variable

you need to assign the value of character, but you should not write "World" directly, you should use character in the assignment

1 Like

Thanks a lot that really helped out