I would reset the lesson because it looks like you made to many changes to the starter code that you weren’t supposed to.
Once you reset the lesson your starter code should look like this.
// Setup
var a;
a = 7;
var b;
// Only change code below this line
WRITE YOUR CODE HERE :)
Make sure you are only adding code where you are supposed to.
As for your question, your task is to assign the contents of a to variable b .
Your answer should only be one line of code.
The way assignment works is that what is on the right hand side of the = will be assigned to the left hand side variable.
For example, if I wanted to assign my name to the variable called myName here is how I would do it.
//setup
var myName;
//Only change code below this line
myName = "Jessica"
You are going to apply that same principle to this challenge.
And remember to write your code in the correct place and your answer should only be one line of code.
You don’t need to create a new variable called var ab.
And also you shouldn’t have this part either
This is the line you should pay attention to
You’re close here.
Right now your code says assign the contents of b to a
but the directions tell you to do the exact opposite and assign the contents of a to b.
Reset the lesson and only add this line but with a and b switched