Create a function removeElement that removes the last item of the array using pop and logs the updated array.

Output: