Tell us what’s happening:
Your code so far
// Setup
var a;
a = 7;
var b;
// Only change code below this line
var a;
b = 7;
a = b;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.
Challenge: Assigning the Value of One Variable to Another
Link to the challenge:
Hey! I remember this JS problem back when I was doing it and I was stuck too. What seemed to be something so simple was driving me insane… The answer is really simple! If you haven’t figured it out yet, I would just go back and re-read the challenge and retry your code… In the “Setup” section, your variables are already setup. The challenge is to assign the content of variable a to variable b.
I.E.
If myVar = 5;
myNum = myVar (5);
then…
a = 7
b = ?
Note that variables don’t need to be redeclared.
I hope this helps!
Tnx a lot
figured i just needed to concentrate more