undefined
. If you do a mathematical operation on an undefined
variable your result will be NaN
which means "Not a Number". If you concatenate a string with an undefined
variable, you will get a literal string of "undefined"
.
a
, b
, and c
with 5
, 10
, and "I am a"
respectively so that they will not be undefined
.
a
should be defined and evaluated to have the value of 6
testString: 'assert(typeof a === ''number'' && a === 6, ''a
should be defined and evaluated to have the value of 6
'');'
- text: b
should be defined and evaluated to have the value of 15
testString: 'assert(typeof b === ''number'' && b === 15, ''b
should be defined and evaluated to have the value of 15
'');'
- text: c
should not contain undefined
and should have a value of "I am a String!"
testString: 'assert(!/undefined/.test(c) && c === "I am a String!", ''c
should not contain undefined
and should have a value of "I am a String!"'');'
- text: Do not change code below the line
testString: 'assert(/a = a \+ 1;/.test(code) && /b = b \+ 5;/.test(code) && /c = c \+ " String!";/.test(code), ''Do not change code below the line'');'
```