Basic JavaScript - Understanding Uninitialized Variables

Tell us what’s happening:

I do no understand why it is not working when i run it

Your code so far

// Only change code below this line
var a = 5;
var b = 10;
var c = " I am a String!"
// Only change code above this line

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Basic JavaScript - Understanding Uninitialized Variables

Welcome to the community!

I do not believe the var c should have the text String! added to it.

That is added in the lower section code which you will see.

Try just the first part of the text for var c, and you may need to remove the space after the quote at the beginning.

Happy coding!


Thank you so much for your help. It works now. Happy Friday !


I am glad to be able to help you move on.

Happy Friday!

1 Like