Storing Values with the Assignment Operator - Help

Storing Values with the Assignment Operator - Help
0

#1

Tell us what’s happening:
I just do not know why my code does not work… pls help me!

Task:

Assign the value 7 to variable a.

Assign the contents of a to variable b.

Your code so far

// Setup
var a;
var b = 2;

// Only change code below this line



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

Your Browser User Agent is: ```Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36```.

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

#2

From the code it looks like nothing is wrong, even loaded up the problem and it passes with no issue for me. Do you have any browser addon that could be interfering with the page JS such as adblock or noscript? You could try doing a hard reload (usually ctrl+f5) to see if something hasn’t loaded correctly and might have messed it up. If none of that works try with another browser. You could also open the dev tools with f12 and check if you get any errors in the JS console. But yeah, your code looks correct.