Tell us what’s happening:
hi guys,
You are now ready to declare your next variable. Remove both console.log statements, and the character reassignment.
Also remove your secondCharacter variable, but leave the character initialization unchanged.
let character = ‘Hello’;
console.log(character);
character = “World”;
let secondCharacter;
secondCharacter = character;
console.log(secondCharacter);
How do you think I can achieve the result?
Your code so far
// User Editable Region
let character = 'Hello';
console.log(secondCharacter);
// 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/129.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 12