I have a collection of arrays named "list0" through "list7" which have been explicitly defined. My goal is to include each of these arrays as elements in an existing array, creating a 2D array of these defined arrays.
How can I reference each 'list' array in a 'for' loop?
For example:
var matrix1 = new Array();
function makeMatrix1(){
for(row=0; row<8; row++)
{
matrix1[row] = list[row]//put each 'list' array into matrix1 as an element
}
The above syntax is not functioning correctly, for obvious reasons.