For "Understanding Uninitialized Variables"
These are the Instructions:
Initialize the three variables a, b, and c with 5, 10, and “I am a” respectively so that they will not be undefined.
But the checklist below the buttons says to define a as 6, b as 15 and c as “I am a String!”
Only one of these works so it appears the other is wrong?
That isn’t a checklist below the button, those are the tests the computer will do. Yes, you intiallize a, b, and c with 5, 10, and “I am a”, but then look at the code.
// Initialize these three variables
var a;
var b;
var c;
// Do not change code below this line
a = a + 1;
b = b + 5;
c = c + " String!";
Those last three lines will make those changes that if you initialize the variables correctly, then the tests will pass. You set a to 5 and then the line a = a + 1
will change it to 6 so the test will pass.
I see where it reports the results on the left now, thank you