Uninitalized variables

Tell us what’s happening:

Your code so far


// Only change code below this line
var a;
a = 5;
var b;
b = 10;
var c;
c = "";
// 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 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0.

Challenge: Understanding Uninitialized Variables

Link to the challenge:

Hi. I’m guessing you’re stuck.

This challenge wants c to have a value of “I am a String!”

If " String!" is going to be added on to the end of it, can you see what you need set c to in this section?

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

Hi. i have tried typing “i am a” but it still gives me an error please advice me on what to write

The test is case sensitive so that lowercase “i” is probably what’s causing you trouble.

thank you
the problem is that i used small letter i instead of capital letter

1 Like