pls how i assign a to b with=.
Your code so far
// Setup
var a;
a = 7;
var b;
// Only change code below this line
b =7;
var a;
a= 7;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
.
Challenge: Assigning the Value of One Variable to Another
Link to the challenge:
// the line below assigns 7 to a
a = 7;
// the line below assigns 7 to b
b = 7;
Assignment is done from right to left, so the value on the right of the =
is assigned to the variable on the left of the =
.
One problem in you code is that you have var a
twice. This command creates the variable a
and should only be done once.