Storing Values with the Assignment Operator i am in need of assistance

Tell us what’s happening:

i cannot figure this code out

Your code so far

// Setup
var a;
var b = 2;

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

Your browser information:

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

Link to the challenge:

So the use of the var keyword is used to initially create a variable (as is let and const, as you’ll learn later). But what that means for you? You don’t need to re-allocate that memory space, so remove the var from those lines.

Also, don’t set b = 7. They don’t ask you to set it to 7, they ask you to set it to a.

1 Like