Storing Values with the Assignment Operator3

Storing Values with the Assignment Operator3
0

#1

Tell us what’s happening:

Your code so far


// Setup
var a;
var b = 2;

// Only change code below this line
a = 7;
var b;
var b = var a;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator/


#2

Awesome

Not awesome
b is already declared, you don’t need to declare it again with var.
var a = var b is a syntax error, you can’t use var in the value you are assigning to a variable.
Also, the challenge is asking you to assign the content of a to the variable b, remember you assign what is to the right of the assignment operator = to the variable to the left of it.


#3

assume that ‘is’ is equal to ‘=’ operator
var a is an empty container
var b is a container containing 2
// Only change code below this line

a and b is already containers and no need to make them container using var
put something into container just like in b
put the container ‘a’ into container ‘b’
done