Storing Values with the Assignment Operator help me pleaseeee

Tell us what’s happening:
I cant undertsand what is uncorrect?

Your code so far

// Setup
var a;
var b = 2;

// Only change code below this

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36.

Link to the challenge:

Variables should be declared with var only the first time they appear, so you shouldn’t write it yourself, the starting code is where the variables are declared

Fixed that, this is what you are doing:

  • assigning the value of 7 to variable a
  • assigning the value of 7 to variable b
  • assigning the contend of variable b to variable a

Is this what is being asked from you?

1 Like