Storing Values using the Assignment Operator

Tell us what’s happening:

hi,i am trying to Store Values with the Assignment Operator.please can anyone tell me what’s wrong and how to correct it

Your code so far


// Setup
var a ;
var b = 2;

// Only change code below this line
var a =7; //a is equal to 7
var b =7;
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/72.0.3626.121 Safari/537.36.

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

You declate a variable with var, that is already done so you don’t need to that again

You have two tasks, the first is

Assign the value 7 to variable a .

Then you have to do this:

Assign the contents of a to variable b .

If you remove all unnecessary var you are almost there

wow,thank you.
your timely response speaks volume