Tell us what’s happening:
Your code so far
// Setup
var a = 7;
var b = 7;
// Only change code below this line
var b = a;
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
.
Link to the challenge:
You should leave the first two lines below // Setup
untouched (so change var a = 7;
back to var a;
)
You should assign 7
to a below the second comment. You don’t have to use the var
keyword because a
is already declared earlier (same with b
).
// Setup
var a;
var b;
// Only change code below this line
a = 7;
b = 7;
b = a;
Again not getting it right.
You don’t have to explicitly assign 7 to b
. The b = a
line will do that for you (and is the point of the exercise)
ohk then by this also my challenge is not completed.
Make sure you have this code below // Setup
:
var a;
var b = 2;
yeah its done but dont understand that why we need to assign value 2 to b.
just to make sure that the value passed to a is the same value passed wth b?
It’s just the default code for the challenge, and it doesn’t want you to change that (though I’m not sure why there has to be an initial value for b
).