-
a
should be defined and have a final value of6
. -
Passed:
b
should be defined and have a final value of15
. -
Passed:
c
should not containundefined
and should have a final value of the stringI am a String!
-
Failed:You should not change code below the specified comment. How to do it
//Initialize these three variables
var a;
var b;
var c;
// Do not change code below this line
a = 5 + 1;
b = a + 9;
c = "I am a" + " String!";
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
Challenge: Basic JavaScript - Understanding Uninitialized Variables
Link to the challenge: