array.pop( )
array.pop( )pop removes the last element from an array and returns it. If the array is empty, undefined is returned.
array.push({item1 {item2 {... {itemN }}}})
array.push({item1 {item2 {... {itemN }}}})push appends new elements (item1,...,itemN) to an
array, and returns the new length of the array. The push method appends elements in the order in which they appear. If one of the arguments is an array, it is added as a single element. Use the concat method to join the elements from two or more arrays.
array.shift( )
array.shift( )shift removes the first element from an array and returns it.
array.unshift({item1{, item2 {, ... {, itemN}}}})
array.unshift({item1{, item2 {, ... {, itemN}}}})unshift returns an array with specified elements (item1,...,itemN) inserted at the beginning. The items will appear in the same order in which they appear in the argument list.