Understanding Variables

Tell us what’s happening:
Not sure what is wrong with this code for var c!!!

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:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0.

Link to the challenge:

The challenge instructions say to initialize variable c to “I am a”. You initialized variable c to a different value.

You are concatenating strings using an operator function.

The way you have it will wind up with:
I am a String! String!

You can see where that might be incorrect.
Skinny up your declaration of the variable c before you perform the operation, to achieve the desired result.



Got it! Thank you! I had figured it out a little while ago but thanks for answering my question.