Removes the item with the index i from the array and returns it. The optional argument defaults to -1, so that by default the last item is removed and returned.
pop([i])