--- id: 56533eb9ac21ba0edf2244aa title: Understanding Uninitialized Variables challengeType: 1 videoUrl: '' localeTitle: Entendiendo las variables sin inicializar --- ## Description
Cuando se declaran las variables de JavaScript, tienen un valor inicial de 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" .
## Instructions
Inicialice las tres variables a , b y c con 5 , 10 y "I am a" respectivamente para que no queden undefined .
## Tests
```yml tests: - text: 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");' ```
## Challenge Seed
```js // 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!"; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```