Problem in understanding Uninitialized Variables. problem in c variable

Tell us what’s happening:

Your code so far


// Initialize these three variables
var a=5;
var b=10;
var c="I am a String!";

// Do not change code below this line

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

Your browser information:

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

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

Uninitialized means that it hold no value. Not empty, just not holding value.

You are welcome to the community! :slight_smile:

The problem is that you have assigned I am a String! value to c variable. And then you add String! value to it. As a result in the end the c variable is equal to I am a String! String! but it must be equal to I am a String!.

I hope this helped you to understand what is wrong in your code and what you have to fix.