undefined
. Si realiza una operación matemática en una variable undefined
, su resultado será NaN
que significa "No es un número" . Si concatena una cadena con una variable undefined
, obtendrá una cadena literal de "undefined"
. a
, b
y c
con 5
, 10
y "I am a"
respectivamente para que no queden undefined
. a
debe definirse y evaluarse para tener el valor de 6
testString: 'assert(typeof a === "number" && a === 6, "a
should be defined and evaluated to have the value of 6
");'
- text: b
debe definirse y evaluarse para que tenga el valor de 15
testString: 'assert(typeof b === "number" && b === 15, "b
should be defined and evaluated to have the value of 15
");'
- text: c
no debe contener undefined
y debe tener el valor "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: No cambie el código debajo de la línea
testString: 'assert(/a = a \+ 1;/.test(code) && /b = b \+ 5;/.test(code) && /c = c \+ " String!";/.test(code), "Do not change code below the line");'
```