add

.add( val )

Adds the given value 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 'push'.

See also

push - unshift