Array methods: pop( ) and shift( )
Array pop
With the Array method pop(), you can remove the last element from an array and it returns the removed element.
pop() changes the length of the array.If you call pop() in on an empty array, it will return undefined.
Array shift
shift() Is...
matshaby.hashnode.dev1 min read