Arreglos - Ejercicio Guiado

In this example below you will see how to do a Arreglos - Ejercicio Guiado with some HTML / CSS and Javascript

This awesome code was written by antocg, you can see more from this user in the personal repository.
You can find the original code on
Copyright antocg ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>Arreglos - Ejercicio Guiado</title>



    <script  src="js/index.js"></script>



/*Downloaded from */
var arr1 = [[2,3],[2,4],[5,6],[2,8]];
var arr2 = [[5,2],[9,4],[3,5],[1,3]];

function cadena(arr1,arr2){
	var nuevoArr = [];
  for(var i = 0; i<arr1.length; i++){
  	nuevoArr.push(arr1[i][0] + arr1[i][1],arr2[i][0] + arr2[i][1]);
  return nuevoArr;