1.2 KiB
1.2 KiB
id, title, localeTitle, challengeType
id | title | localeTitle | challengeType |
---|---|---|---|
56533eb9ac21ba0edf2244a9 | Initializing Variables with the Assignment Operator | Inicializando variables con el operador de asignación | 1 |
Description
var myVar = 0;
Crea una nueva variable llamada myVar
y le asigna un valor inicial de 0
.
Instructions
a
con var
e inicialícela a un valor de 9
.
Tests
tests:
- text: Inicializar <code>a</code> a un valor de <code>9</code>
testString: 'assert(/var\s+a\s*=\s*9\s*/.test(code), "Initialize <code>a</code> to a value of <code>9</code>");'
Challenge Seed
// Example
var ourVar = 19;
// Only change code below this line
After Test
console.info('after the test');
Solution
var a = 9;