Whats wrong here people?
Your code so far
// Initialize these three variables
var a;
var b;
var c;
// Do not change code below this line
a = a + 1;
b = b + 5;
c = c + " String!";
var a = 6;
var b = 15;
c = "I am a" + c;
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
.
Link to the challenge:
https://www.freecodecamp.org/challenges/understanding-uninitialized-variables
You are only supposed to change the code above the following line:
// Do not change code below this line
In addition, and for future reference, you cannot declare a variable with the same identifier more than once—you have both a
and b
declared with the var
keyword twice.
I think you are trying to make things match the output of the tests, but that’s actually already what the code below the line // Do not change code below this line
is already doing. Reading through the instructions again may help:
Initialize the three variables a, b, and c with 5, 10, and “I am a” respectively so that they will not be undefined.