What is wrong with assignment operator!

What is wrong with assignment operator!
0

#1

Tell us what’s happening:

Your code so far


var a , b;
var a = 7;
var b= var a;

Your browser information:

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

You’ll only use the var keyword when declaring variables for the first time. They’re not needed when using them:

var a, b;
a = 7;
b = a;