JavaScript Array method: push()
[this page | pdf | back links]
The push() method (when applied to a JavaScript
array) joins
arrays and returns a copy of the joined array.
It
has the following syntax with the following parameters. It returns a number
representing the new length of the array.
array.push(item1, item2, …)
|
Parameter
|
Required / Optional
|
Description
|
|
item1, item2, …
|
Required
|
The item(s) to be added
to the array
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Arrays