Tell us what’s happening:
For whatever reason, I can’t pass this challenge, even though it is very simple. It requires assigning variable a to variable b.
Your code so far
// Setup
var a;
var b = 2;
// Only change code below this line
a = 7
b = 7
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15.
Assignment always goes from right to left. Everything to the right of the = operator is resolved before the value is assigned to the variable to the left of the operator.
The challenge description also includes an example of assigning the value of one variable to another.
Nobody is being cryptic. Everyone is trying to help you.
You need to assign 7 to the variable a.
You need to assign the value of a to the variable b.
You do not need to do anything else.
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
This topic has been inactive for two years and the challenge is pretty different now.