Basic JavaScript - Understanding Uninitialized Variables

Tell us what’s happening:
Describe your issue in detail here.
I really don’t get what I’m doing wrong, it looks right
Your code so far

// Only change code below this line
var a=5;
var b=10;
var c="I am a";
// 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/105.0.5195.127 Safari/537.36

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

This looks like a bug in the challenge.

Look are the tests and follow those instead (6, 15 etc)
And pls let me know here if that worked. You can then open a new GitHub issue to get this fixed.

Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

I tried that, and return success. Maybe it’s a glitch

// Only change code below this line
var a = 5;
var b = 10;
var c = "I am a";
// Only change code above this line

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

so i was doing it correct then?
and how do i follow the tests instead?
and i will check github to see if an issue was already reported

Try reading the tests. They mention different values for a and b and c. So try to change your code to fit the test requirement instead

that didnt work either

Oh sorry!
I just realized what was happening. Actually put the old code back for now please.

Try resetting the step with the Restart button and force the browser to refresh with CTRL-F5 and then paste the 3 lines of code from your original post.

paste where ? on the refreshed lesson?

sorry im like super new to all of this

oh yeah that worked thank you so much

1 Like

Yes i think you were correct.