Tell us what’s happening:
Your code so far
// Only change code below this line
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:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
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?
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.
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 .
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