Why does it not work?

What is wrong with this code?

// Only change code below this line
var a = 6; 
var b = 15; 
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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.

Challenge: Understanding Uninitialized Variables

Link to the challenge:

Slow down and read the code.
What do the failing tests say? What information does this give you?

1 Like

Hi @sleepingcarrot

Read the question and check what is expected. then start with coding :slightly_smiling_face:

As you can see there you need to assign the variable total value they requested so do some math and find out what is that values should be .


Check the required values. You must have inputted the wrong data.
Hope this helps.