I don't get what am supposed to do, and I can't get the correct solution

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 (Linux; Android 8.1.0; TECNO KA7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.81 Mobile Safari/537.36.

Challenge: Understanding Uninitialized Variables

Link to the challenge:

you need to initialize the three variables, give them a starting value
the values you need to assign them are written in the challenge description

var myNum = 8;
var myStr = "Banana";

above here I have initialized the variable myNum to the number 8 and the variable myStr to "Banana"

1 Like

the line a = a + 1 doesn’t mean anything because a is undefined first
So you need to initialize before

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 (Linux; Android 8.1.0; TECNO KA7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.81 Mobile Safari/537.36.

Challenge: Understanding Uninitialized Variables

Link to the challenge:

You have not changed any code yet. What part of the challenge description/instructions are you having trouble understanding. If you can answer this question, we can better guide you to a solution.

1 Like

I have tried it before, so I reset it

I understand what it’s meant

what have you tried? what’s the code you have tried to submit?

if you don’t show what you have tried, we don’t know what you understand or not of the question