push

.push( val )

Adds the given element to the end of this array.

names = []
names.add( 'Brian' )
names.add( 'Joe' )

name = names[0] // set to Brian
name = names[1] // set to Joe
name = names[2] // set to null

Note that this is the same as the 'add' method.

See also

add