I'm stuck on "Basic JavaScript: Storing Values with the Assignment Operator"

What did I do wrong:

// Setup
var a;
var b = 2;

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

A couple of issues I see:

  • You’ve added code above the // Only change code below this line.
  • You don’t need to use var when you reassign the value of a variable, just when you first declare it.
  • You are assigning the value 7 to the variable b, which you shouldn’t do, then:
  • You assign var a to var b. You can’t use var on the right side of an expression.