Tell us what’s happening:
Describe your issue in detail here.
Your code so far
// Setup
var a;
a = 7;
var b;
var a;
a = 7;
var abc;
abc = a; // The variable 'abc' is equal to 5
// Only change code below this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Challenge: Assigning the Value of One Variable to Another
Link to the challenge:
Hi @cajunpower1 !
You have a few issues so I would reset the lesson.
Make sure to write your code where it tells you to.
// Setup
var a;
a = 7;
var b;
// Only change code below this line
write code here
As for the challenge, it wants you to assign the contents of a to variable b .
Your answer should be one line.
You do not need to create any new variables.
If you need help, take a look at the example code again.
myNum = myVar;
You see how they assign myVar to myNum.
You need to do that same thing but assign a to b
Hope that helps!