Please i need help Initializing the three variables a, b, and c with 5, 10, and "I am a" respectively so that they will not be undefined. please how do i do that?

Tell us what’s happening:

Your code so far

// Only change code below this line
var a;
var b;
var c;
// 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.
Read this chapter: Do not get confused that they use 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 var myVar
you initialize a variable with var myVar = 9

you need to initialize the 3 variables, give them a starting value

Hi @uzodimma,
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. :slightly_smiling_face:

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 :frowning:

omg! so sorry i did a very simple mistake!