The challenge will not update

Tell us what’s happening:
I’m just starting and I’m at a stand still. it asked me to change the Var of a & b to 6 & 15 and to change c to I am a String so I did what I thought was right and when I went to click run test it will not update. what should I do?

Your code so far


// Only change code below this line
var 6;
var 15;
var 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 (X11; CrOS x86_64 12607.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.123 Safari/537.36.

Challenge: Understanding Uninitialized Variables

Link to the challenge:

You need to Initialize a, b, and c to the correct values so that they have the desired end values after the three additions given at the bottom.

So like this?

var a = 6;
var b = 15;
var c = I am a String

You deleted the variable names.

Not quite, you need to pick the right start value to get the desired end value.

// Only change code below this line
var a = A_NUMBER_THAT_WILL_MAKE_6_WHEN_YOU_ADD_1;
var b = A_NUMBER_THAT_WILL_MAKE_15_WHEN_YOU_ADD_5;
var c = A_STRING_THAT_WILL_MAKE_I_AM_A_STRING_WHEN_YOU_ADD_STRING;
// Only change code above this line

a = a + 1;
b = b + 5;
c = c + " String!";

like this?

// Only change code below this line
var a = 3
var b = 5
var c = “I am a string”

Well,

3 + 1 === 4 !== 6, so your value for a won’t work

5 + 5 === 10 !== 15, so your value for b won’t work

"I am a string" + " String!" === "I am a string String!" !== "I am a string!", so your value fol c won’t work

oh I see like this then?

// Only change code below this line
var a = 5
var b = 10
var c = “I am a”

There you go! I think that should do it.

for some reason is that the var would be added twice

Just be careful, you have ‘smart quotes’ there when you really need regular quotes: "

thank you where such a great help thanks for taking time to help me

1 Like

thanks for the tip and to do that i just press and hold Shift on the key left of the enter button right?

For QWERTY keyboards, yeah. Sometimes phones or other devices auto correct to the smart quotes “” instead of regular, normal quotes "".