Arrays
An array is a list contained in a single variable. Each item in the list is known as an “element,” and the entire list is enclosed in square brackets ([]). When you create an array, it is initialized with the specified values as its elements. The following example creates the coffeelist array with three elements and a length of three:
var coffeelist = ["French Roast", "Columbian", "Kona"];
Multidimensional arrays are represented as an array of arrays. A two-dimensional array (rows and columns) may be created as follows:
var monthly_rain = [['Jan', 'Feb', 'Mar'],
[ 100, 10, 30 ],
[ 30, 10, 300 ],
[ 10, 10, 10 ]];
| << Date Type | © 1996-2013 InetSoft Technology Corporation (v11.4) | Conditionals >> |