Storing Values with the Assignment Operator Help! A should be assigned to B

Storing Values with the Assignment Operator Help! A should be assigned to B
0.0 0

#1

Tell us what’s happening:
Help! A should be assigned to B

Your code so far


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

// Only change code below this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator


#2

so the first thing you had to do was assign 7 to a, which you did perfectly by writing:

a = 7;

Now, they want you to assign a to b. So, just do the exact same thing you did but with a and b.
(that is, if I said, assign 20 to b, then you would write b = 20 right? So a to b is no different than 20 to b. Exactly the same but instead of 20 , use a).


#3

Like: var b = a;
Thanks brain raked a bit an i’m just starting.