Storing Values with the Assignment Operator: Help!

Storing Values with the Assignment Operator: Help!
0

#1

Tell us what’s happening:

Your code so far

// Setup
var a;
var b = 2;

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


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38.

Link to the challenge:


#2

Variable a has already been declared ( var a; ), so you can not declare it again. You just need to assign the number 7 to variable a. Then, since b has already been declared ( var b =2; ), you just need to assign a to b.

How do we assign values to previously declared variables? Like below:

previouslyDeclareVariable = someValue; // variables hold values and can be assign to other variables

#3

Thank you!

I figured it out as soon as your assistance came through. I am brand new at this.