Https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/understanding-uninitialized-variables

Tell us what’s happening:
i’m stuck

var a = 5;

var b = 10;

var c = “i am a”;

Your code so far


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


Your browser information:

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

Challenge: Understanding Uninitialized Variables

Link to the challenge:

What do the failing tests say?

c should not contain undefined and should have a value of “I am a String!”

“i am a String!” is not the same thing as “I am a String!”.

1 Like

now what the solution?

You need to change what you initialized c to.

thank you by the way