2.0 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.0 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| 587d7b84367417b2b2512b36 | Catch Unclosed Parentheses, Brackets, Braces and Quotes | 1 | Captura paréntesis, corchetes, llaves y citas sin cerrar | 
Description
Instructions
Tests
tests:
  - text: Tu código debería arreglar la pieza faltante de la matriz.
    testString: 'assert(code.match(/myArray\s*?=\s*?\[\s*?1\s*?,\s*?2\s*?,\s*?3\s*?\];/g), "Your code should fix the missing piece of the array.");'
  - text: 'Su código debería arreglar la pieza faltante del método <code>.reduce()</code> . La salida de la consola debe mostrar que "Suma de valores de matriz es: 6".'
    testString: 'assert(arraySum === 6, "Your code should fix the missing piece of the <code>.reduce()</code> method. The console output should show that "Sum of array values is: 6".");'
Challenge Seed
let myArray = [1, 2, 3;
let arraySum = myArray.reduce((previous, current =>  previous + current);
console.log(`Sum of array values is: ${arraySum}`);
Solution
// solution required