Use a multidimensional arrayTag(s): Language


// create 5x5 two dimensional array
var multidimension = new Array(5);
for ( var i=0; i < multidimension.length; i++ )
  multidimension[i] = new Array(5);

// access first element
multidimension[0][0] = "hello world"

blog comments powered by Disqus