Assign Values with the Assignment Operator

Tell us what’s happening:

please how do i assign var a into b in the code below

Your code so far

var a;

var b = 2;

// Only change code below this line

a = 7


// Setup
var a;
var b = 2;

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:66.0) Gecko/20100101 Firefox/66.0.

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

  1. Semicolons should be added at the end of each statement
  2. A variable should be declared or initialised with var only the first time it appears in the code
  3. b = "a" here you are assigning a string to the variable b, not the value of a variable to an other