Tell us what’s happening:
Describe your issue in detail here.
Your code so far
// Only change code below this line
// Only change code above this line
a = a + 1;
b = b + 5;
c = c + " String!";
var a = 6;
var b = 15;
var c = "I am a string!"
please what is the correct value to var c?
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Challenge: Understanding Uninitialized Variables
Link to the challenge:
Welcome to the freecodecamp community!
if you look closely at the comments, it says that you are not supposed to change the code below them.
The problem that you are being asked is, what should the value of a be if a + 1 = 6. we can find that out easily if we do this.
var a ;
// if i set
a = 5;
//this fulfills the condition.
a = a + 1 // 6
you have to do the same with the other two variables. i know the strings can be a little tricky if you’re just starting out so let me know if you still have trouble with it.
Hope this helped!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.