Storing Values with the Assignment Operator loop

Tell us what’s happening:

Your code so far


// Setup
var a;
var b = 2;

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

Do you have a link to the exercise? or what is this challenge asking you to do? What’s your question?

a should have a value of 7

b should have a value of 7

a should be assigned to b with =

This is what you should do:

Assign the value 7 to variable a .

Assign the contents of a to variable b .

You have two different tasks to complete, the first one you did, you assigned the value of 7 to variable a

You can assign in the same way with variables, just remember that you assign what is to the right of the assignment operator to the variable to the left

done! Thanks :grinning: