Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
 }
}
Source by www.javascripter.net #
 
PREVIOUS NEXT
Tagged: #javascript #define #multidimensional #array
ADD COMMENT
Topic
Name
9+8 =