1. Home
  2. Computing & Technology
  3. JavaScript

Array

By , About.com Guide

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
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript
  4. Reference
  5. Javascript Glossary - Array

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

All rights reserved.