Array.push

Function/Meaning

Adds the specified element to the end of the array.

Type
Arrayclassmethod of
Syntax
push(value, ...) :int
Arguments
value

Additional value

Return value

Size after addition

Explanation

Unlike the add method, this method returns the size of the added array.
Also, if multiple arguments are specified, all the arguments will be added in order.