freeCodeCamp Challenge Guide: Storing Values with the Assignment Operator

freeCodeCamp Challenge Guide: Storing Values with the Assignment Operator
0

#1

I cant figure it out ?
In Javascript, you can store a value in a variable with the assignment or equal (=) operator.

myVariable = 5;

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.

myVar = 5;

myNum = myVar;

Tell us what’s happening:

Your code so far

// Setup
var a;
var b = 2;

// Only change code below this list
myVar = 5;
myNum = myVar;

you have to add 
var a=7;
var b=7;
var b=a;

#2