Tell us what’s happening:
Step 11
You can also assign the value of a variable to another variable. For example:
Example Code
let first = “One”;
let second = “Two”;
second = first;
The second variable would now have the value “One”.
To see this in action, change your secondCharacter assignment from “Test” to your character variable.
Then open the console to see what gets logged.
Your code so far
let character = 'Hello';
console.log(character);
character = "World";
let secondCharacter;
// User Editable Region
secondCharacter = "Test";
let first = "One";
let second = "Two";
second = first;
// 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/133.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 11