Tell us what’s happening:
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!";
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36.
Challenge: Understanding Uninitialized Variables
Link to the challenge:
You need to use
= assignment operator.
let instead of
var. Right now, just think of them like synonyms.
I don’t understand, can you please explain in more detail with examples.
you declare a variable with
you initialize a variable with
var myVar = 9
you need to initialize the 3 variables, give them a starting value
initializing variables simply means assigning values to the variables. The challenge is to assign the given values (5, 10, “I am a”) to relevant variables. As an example,
var a = 5;
Try to initialize the rest of variables like that.
i cant get that either. what is wrong with writing
var c = ''i am a;'' i really need the answer I’m about to lose it
omg! so sorry i did a very simple mistake!