--- id: 56533eb9ac21ba0edf2244a9 title: Initializing Variables with the Assignment Operator challengeType: 1 videoUrl: '' localeTitle: Inicializando variables con el operador de asignación --- ## Description
Es común inicializar una variable a un valor inicial en la misma línea que se declara. var myVar = 0; Crea una nueva variable llamada myVar y le asigna un valor inicial de 0 .
## Instructions
Defina una variable a con var e inicialícela a un valor de 9 .
## Tests
```yml tests: - text: Inicializar a a un valor de 9 testString: 'assert(/var\s+a\s*=\s*9\s*/.test(code), "Initialize a to a value of 9");' ```
## Challenge Seed
```js // Example var ourVar = 19; // Only change code below this line ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```