Array

Introduction

Arrays allow for the treatment of a related set of data items as one entity.

Example

var trees = new Array(); trees[0]="Ash"; trees[1]="Beech"; trees[2]="Cherry";

Example

var trees = new Array("Ash","Beech","Cherry");

Example

var trees = ["Ash","Beech","Cherry"];