I created the following 2D array in Javascript
// Create basic linear array var ImgArray = new Array(4); // Do the 2D array for each or the linear array slo
you just have to do a for loop for both as such
for (var i in array){ for(var j in array[i]){//do stuff here} }