Im stuck in this javascript

Tell us what’s happening:

Your code so far


// Setup
var a;
a = 7;
var b;

// Only change code below this line
var a;
a = 7;
var b;
b = 7;
a = b;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 OPR/73.0.3856.400.

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.


It looks like you are redefining your variables. You should only assign the contents of a into the variable b.