Array.push
push — Adds a new value to the end of the array.
Description
Array.push(mixed value)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
value | mixed | No |
Return values
integer. The new length of the array.
Examples
Example #1 – push example