Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

I am trying to assign the value of my character variable to my secondCharacter variable.

Your code so far

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

// User Editable Region

secondCharacter = "Test";
character = secondCharacter;

// User Editable Region

console.log(secondCharacter);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Right now you are changing the character variable.
They wanted the opposite.

please can you explain what you mean by that

If I write

let x = 5;
x= 6;

The variable that is being changed is the x variable. The one in the left of the equal sign.

So in your case:

The thing that changes here is secondCharacter. After this line runs, it has a value of “Test”.

In the instructions given to you they said:

change your secondCharacter assignment from "Test" to your character variable.

That means, if you do this step correctly, secondCharacter will change. It will now have the value of whatever is in character.

Click the reset button and erase the word “Test” and write character instead.