What is left to complete this code and make it run

Tell us what’s happening:

Your code so far

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; itel A16 Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36.

Challenge: Understanding Uninitialized Variables

Link to the challenge:

If c = “I am a String!” and you add " String!" onto the end of it, what will you end up with?

Sorry you mean i should replace I am a string to “the result of equation!”;

So, your initial variable should be set the value before. ex: if you want set bottom a to 10 you should set it 4 in top. because a = a + 6

To be clearer, whatever you set c to is going to have " String!" added onto the end of it. So if you want the overall result to be “I am a String!”, can you see what you need to do?

1 Like

Hello there,

Please make use of the Tell us what’s happening section of these posts to ask a question/give more information. The title is not the place to do this.

Thank you.

1 Like

it will say, “I am a String” + String! as it is coded now, i think?
Cause c is already “I am a string” then u are adding “String!”
So you will end up now if no changes ,with “I am a String!” “String!”
I hope i am right so far? Please confirm . :slight_smile:

To run it add : Console.log ( c );
had to put spaces as it became a copyright logo when submitted reply

I’m guessing without looking it up.
Now i will look it up :slight_smile: