push

Adds new items to the end of an list, and returns the new length.

This function generates an event.

Function

list.push(item1, item2, ..., itemX)

Return value

Returns the new length of the list.

Example

This code pushes values to a list:

list = [1, 2, 3];
list.push(4, 5, 6);

Return value in JSON format

6