Basic JavaScript - Understanding Uninitialized Variables

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// Only change code below this line
var a= 6;
var b= 15;
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 10; CPH2185) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

Tell us what’s happening:
Describe your issue in detail here.

I don’t seem to be getting this.
Please what am i supposed to do?
Your code so far
var a=6;
var b=15;
var c=“I am a String!”

// 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 10; CPH2185) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

hi there, I have merged two posts you created about the same challenge into one.
Please do not open multiple topics in future if you want to discuss the same challenge.
(just update the topic you already created or respond back to it etc)

check the instructions again.
They gave you a specific string to use for variable c. (it isn’t the one you wrote)

Please can i get the complete correct code, thanks.

sharing code solutions is not allowed on the forum.

I believe you just need to fix your c to be this " `“I am a” instead of what you have now.
(you can re-read the exercise to confirm this)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.