<sectionid="description"> Si tiene una matriz multidimensional, puede usar la misma lógica que el punto de ruta anterior para recorrer tanto la matriz como cualquier subarreglo. Aquí hay un ejemplo: <blockquote> var arr = [ <br> [1,2], [3,4], [5,6] <br> ]; <br> para (var i = 0; i <arr.length; i ++) { <br> para (var j = 0; j <arr [i] .length; j ++) { <br> console.log (arr [i] [j]); <br> } <br> } </blockquote> Esto genera cada subelemento en <code>arr</code> uno a la vez. Tenga en cuenta que para el bucle interno, estamos comprobando la <code>.length</code> de <code>arr[i]</code> , ya que <code>arr[i]</code> es en sí misma una matriz. </section>
<sectionid="instructions"> Modifique la función <code>multiplyAll</code> para que multiplique la variable del <code>product</code> por cada número en los subarreglos de <code>arr</code></section>