Understanding Uninitializ Variables

Tell us what’s happening:

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!";

//defining
var a = 5;
var b = 10;
var c;
//process
 a = a + 6;
 b = b + 15;
 c = c + "i am string";

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/understanding-uninitialized-variables

If you’re looking for help, a concrete question would help us know what you’re not understanding.

here is what it keeps telling me

a should be defined and evaluated to have the value of 6
b should be defined and evaluated to have the value of 15
c should not contain undefined and should have a value of “I am a String!”

All this code here is not necessary. You are supposed to assign values to the top 3, uncommented lines.

like for example
var a;
var b;
var c;

Yes, those three lines are what you need to assign values to. In the code, it also told you not to touch anything below a certain point. Hit the reset button and start over.

yes, thank u i did just that and it worked