Storing Values with the Assignment Operator challenger

Storing Values with the Assignment Operator challenger
0

#1

Tell us what’s happening:

I can’t seem to even run the test I’ve done other sections and all the challenges in the web dev cert. without issue

Your code so far


// Setup
var a;
var b = 2;

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

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator


#2

Nice try!

You don’t need to declare with keywords var again since they have been setup for you.

There for you can finish your code without vars. Click below if you can’t still figure out.

a = 7;
b = a;


#3

Ahh , tricky the first language I started learning was C++.


#4

This would be consistent across languages.