Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

I need help for this lesson. I don’t know what I did wrong here…

Your code so far

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

// User Editable Region

let secondCharacter;
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/127.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Hi Ungu, the secondcharacter variable is already defined so you should not redefine it

1 Like

okay thank you so much for the reply

you are welcome, :grinning: if you need help just send me a message I would love to help you