6.3 Using Arrays
The arrayed objects have properties and methods for adding and removing elements that are array-specific operations. These methods and properties are defined in the Object class.
Array Object
Property
| Name | Type | Explanation |
|---|---|---|
| Length | integer | Number of elements in an array object |
Method
| Name | Explanation |
|---|---|
| Insert | Add an element to the array object |
| Truncate | Deletes all elements of the array object |
Array Elements
Property
| Name | Type | Explanation |
|---|---|---|
| Index | integer | Position of array elements |
Method
| Name | Explanation |
|---|---|
| Insert | Add a new element just before the array element |