1. Home
  2. Computing & Technology
  3. JavaScript

Array

By Stephen Chapman, About.com

Definition: The Array class is used to define a collection of variables that are related together. You can then refer to the individual variables within the array either by their position in the array eg myEntry[3] to access the fourth entry (the first entry is 0) or by name eg myEntry[red]. This is not a reserved word so you can declare your own variable or function called Array but if you do then you will not be able to use the Array class.
Examples: var mess = new Array();

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

©2008 About.com, a part of The New York Times Company.

All rights reserved.