Name

push() — NN 4 IE n/a ECMA n/a

Synopsis

push(value)

Appends an item to the end of an array. The length of the array increases by one.

Returned Value

The value pushed into the array.

Parameters

value

Any JavaScript value.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.