August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Array.push( ): append elements to an array — ECMAScript v3
array.push(value,
...)
value, ...
One or more values to be appended to the end of
array.
The new length of the array, after the specified values are appended to it.
push( ) appends its
arguments, in order, to the end of array.
It modifies array directly, rather than
creating a new array. push( ),
and its companion method pop( ),
use arrays to provide the functionality of a first in, last out
stack. See Array.pop( ) for an
example.
Array.pop( )
Read now
Unlock full access