Please what could my code be missing? I have tried everything

Tell us what’s happening:
Describe your issue in detail here.

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!";

var a = 6;
var b = 15; 
var c = "I am a!";

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Understanding Uninitialized Variables

Link to the challenge:

Hi and welcome,

You initialized those variable after the operations, which you are not supposed to do. If you console-logged those variable it will return:

I am a!

Instead of result of these operations:

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

In addition to advice above:
you have a typo
I am a
I am a!
are not the same

Thanks a lot, i appreciate.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.