Not sure what is going wrong

Not sure what is going wrong
0

#1

Tell us what’s happening:
It saying i need them to have an equal sign but they both do.

Your code so far


// Setup
var a;
var b = 2;

// Only change code below this line

var a = 7; var b = 7;

Your browser information:

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

a should be assigned to b with =


#3

I have them assigned


#4

You didn’t do it like this

Assign the value 7 to variable a .

Assign the contents of a to variable b .


#5

This is what your code is doing

var a = 7;  // Declare a new variable a and assign the value 7 to a
var b = 7;  // Declare a new variable b and assign the value 7 to b

Look closely at the example - it is not exactly the same thing as above

myVar = 5;    // Assign the value 5  to variable myVar.
myNum = myVar;  //  Assign the contents of myVar (which is currently 5) to variable myNum