Array push()
syntax: |
array.push([element1, ...]) |
where: |
elementN - a list of elements to append to the end of an array.
|
return: |
number - the length of the new array.
|
description: |
This method appends the arguments to the end of this array, in the order that they appear. The length of the current Array object is adjusted to reflect the change.
|
see: |
|
example: |
// The following code:
var array = new Array( 1, 2 ); array.push( 3, 4 ); Screen.writeln( array );
// Will print the array converted // to the string "1,2,3,4". |