Solved

# Javascript Multi-D Array!

Posted on 2000-03-30

I need 3 arrays for some js code I'm trying to build!

1st one is 1 dimensional

i.e list1_array[i]

2nd one is 2 dimensional

i.e list2_array[j][k]

3rd one is 3 dimensional

i.e list3_array[l][m][n]

This is what I have so far which falls over in the inner loop..

<html>

<head>

<script>

<!--

var list1_array=new Array();

var list2_array=new Array();

for(i=0;i<7;i++)

{

list2_array[i]=new Array();

var list3_array[i]=new Array();

for(k=0; k<26;k++)

{

list3_array[i][k]=new Array();

}

}

</script>

</head>