push()
adds at end; pop()
deletes from end.
unshift()
adds to front; shift()
deletes from front.
splice()
can do whatever it wants, wherever it wants.
push()
adds at end; pop()
deletes from end.
unshift()
adds to front; shift()
deletes from front.
splice()
can do whatever it wants, wherever it wants.