May 2011
Intermediate to advanced
1096 pages
40h 54m
English
Array.push() — append elements to an array
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.
Read now
Unlock full access