Booklet
POP, PUSH AND SHIFT - Javascript
POP, PUSH AND SHIFT - Javascript
POP
The pop() method removes the last element from an array and returns it
PUSH
The push() method adds a new element at the end of an array and returns the new array length
SHIFT
The shift() method removes the first array element of an array and returns it
UNSHIFT
The unshift() method adds a new element to at the beginning of an array and returns the new array length