+ 3

how can i create a multidimensional array having 78 rows and 12 coloumns

its a JavaScript project

1st Nov 2017, 2:22 AM
sumit kumar dash
sumit kumar dash - avatar
1 ответ
+ 7
This creates a multidimensional integer array and initializes all elements within the sub arrays to 0. var multiDimArray = new Array(); for (var i = 0; i < 78; i++) { multiDimArray[i] = new Array(); for (var j = 0; j < 12; j++) { multiDimArray[i][j] = 0; } }
1st Nov 2017, 4:50 AM
ChaoticDawg
ChaoticDawg - avatar