Answers for "js array of arrays"

4

how to read 2 dimensional array in javascript

activities.forEach((activity) => {
    activity.forEach((data) => {
        console.log(data);
    });
});
Posted by: Guest on May-09-2020
1

javascript define multidimensional array

var iMax = 20;
var jMax = 10;
var f = new Array();

for (i=0;i<iMax;i++) {
 f[i]=new Array();
 for (j=0;j<jMax;j++) {
  f[i][j]=0;
 }
}
Posted by: Guest on September-30-2020
0

creating 2d array in javascript

var [r, c] = [5, 5]; 
var m = Array(r).fill().map(()=>Array(c).fill(0));
Posted by: Guest on October-16-2020
-1

array of array

String[][] arrays = new String[][] { array1, array2, array3, array4, array5 };
Posted by: Guest on April-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language