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"



If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2012
[ home ]