Assigning a string to a variable

Your code so far

// Only change code below this line
var a;
var b;
var c;
// Only change code above this line
var a;
var b;
var c;
var a = 5;
var b = 10;
var c = "I am a " 
c = "I am a "
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/103.0.0.0 Safari/537.36

Challenge: Understanding Uninitialized Variables

Link to the challenge:

In the area below where it says “only change code below this line” and above where it says “only change code above this line”, there are three variables declared, you just need to change those to what is specified, not add more of them several times afterwards.

2 Likes

The variables had already been declared for you, the challenge just wanted you to assign values to them.
declaring them again before assigning values wasn’t necessary.

You added an extra space between the ‘a’ and closing quote, that’s not necessary get rid of it .