Tables are good metaphors for multidimensional arrays: rows contain multiple cells; while independent, each cell belongs to the same row. The table is the multidimensional array, and rows, its elements.
When we showed you how to declare one-dimensional arrays, we covered three declaration methods. All three can be used with multidimensional arrays; this tutorial only mentions the literal notation and array constructor.
Using the Literal Notation
The same syntax is used to declare multidimensional arrays: we simply "nest" the declaration, as shown below.
// Declare a multidimensional array (literal notation)
var arlene = [ ["A1","A2"], ["B1","B2"], ["C1","C2"] ];
Using the Array Constructor
// Declare a standard, one-dimensional array
var arlene = new Array();
// Declare arlene's first and second element as arrays
arlene = new Array();