Storing Values with the Assignment Operator2

Storing Values with the Assignment Operator2
0.0 0

#1

Tell us what’s happening:
hey I don’t know why but its saying that" a should be assigned to b with ="
And I guess it’s not reading it
Your code so far


// Setup
var a;
var b = 2;

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 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

There is no need to initialize variables with “var” keywords since they are already setup for you in the setup.

Go head and assign 7 to a then a to b. If you still need help, unblur below.

a = 7;
b = a;