Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

Hello There!

The conditions says:
2. You should assign the value of the character variable to your secondCharacter variable. Don’t forget your semicolon.
3. Your secondCharacter variable should now have the value “World”.
I understand the character variable is there and it is = World
secondCharacter is not defined yet.
It should input on the console Hello World, right?

Conclusion: i need to add something else?

I need some Help -

Your code so far

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

// User Editable Region

secondCharacter = "character";

// User Editable Region

console.log(secondCharacter);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Welcome to the forum @zocne2704

You should assign the value of the character variable to your secondCharacter variable. Don’t forget your semicolon.

Your code assigned the string "character" to the secondCharacter variable.

Happy coding

Thanks a lot! is solved Happy code!

1 Like