Storing Values with the Assignment Operator I am so lost

Storing Values with the Assignment Operator I am so lost
0

#1

Tell us what’s happening:

Your code so far

// Setup
var a;
var b = 2;

// Only change code below this line

myVar = 7;
b = 7;
a = 7;
  
    ```
**Your browser information:**

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

**Link to the challenge:**
https://www.freecodecamp.org/challenges/storing-values-with-the-assignment-operator

#2

@Lisafur218

Please reload the page and click the hint - it just got fixed :slight_smile:


#3

Thanks!!

Im stuck however on " a should be assigned to b with ="


#4

@Lisafur218 ok. let’s have a look at the challenge and see if I can help you to discover the answer on your own. Here’s the challenge:

Instructions
Assign the value 7 to variable a.
Assign the contents of a to variable b.

// Setup
var a;
var b = 2;

// Only change code below this line

You already know that the contents of variable ‘a’ is ‘7’ and that is making it harder to solve this challenge. Let’s make it easier. Suppose I tell you that variable X has already been declared and assigned a value. How would you assign that value to variable Y ? You can’t say ‘Y = some value.’ How would you do it?