Basic JavaScript - Understanding Uninitialized Variables

what wrong in this code

var a=5;
var b=10;
var c="I am a";

a =a+1;
c=c +' string'

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Please post a link to the Step. Please talk to us about what is the instructions or error message is confusing. Thanks

You changed the code after the comment that told you not to change it.

// 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!";
1 Like