O que há de errado?

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

Your code so far


// 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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36.

Challenge: Understanding Uninitialized Variables

Link to the challenge:

Check the initial values it is asking for again.

Initialize the three variables a, b, and c with 5, 10, and “I am a” respectively so that they will not be undefined.

Do not confuse the initial values with what they become after the code you didn’t write at the bottom runs.

1 Like

Hi!

According to the question, a and b need to be initialized to 5 and 10 respectively so that after the whole code is run, they evaluate to 6 and 15… When you initialize it with 6 and 15 directly, the final values end up different…

Hope that helped!

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