![]() |
![]() |
|||||||||||
|
concat |
Combines two arrays to make a new array. |
join |
Converts all elements of an array into a String object and joins them. |
reverse |
Reverses the elements of an array. |
slice |
Returns a section of an array. |
sort |
Sorts the elements of an array. |
Properties
length |
An integer value one higher than the highest element defined in an array. |
Syntax
new Array()
new Array(size)
new Array(element0, element1, ..., elementn)
Arguments
Remarks
After an array is created, the individual elements of the array can be accessed using [ ] notation, for example:var my_array = new Array();
for (i = 0; i < 10; i++)
{
my_array[i] = i;
}
x = my_array[4];
Since arrays in Microsoft JScript are zero-based, the last statement in the preceding example accesses the fifth element of the array. That element contains the value 4.Copyright © 2000 Chili!Soft