Basic JavaScript - Understanding Uninitialized Variables

// Only change code below this line
var a;
var b;
var c;
// Only change code above this line

a = a + 1;
b = b + 5;
c = c + " String!";


a = 6;
b = 15;
c = "i am a string!"

what is wrong with this pls

Hello, you added code below the comment`s but its still not correct. The insructions tell you exactly what to do.

Please post a link to the Step. Thanks

c should not contain undefined and should have a final value of the string I am a String!
what does this mean pls

The code you need is only three words and not the entire sentence. Make sure you use a capitol letter as well. Undefined is used as default when nothing has been assigned to a variable.

// Only change code below this line
var a;
var b;
var c;
// Only change code above this line

Did you follow what the code comments tell you?

Initialize the three variables a , b , and c with 5 , 10 , and "I am a" respectively

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.