Pop allows us to remove the last item in an array. If we execute the following code…
The output will be "Aaron", "Ruth".
There might be times you wish to remove an item from an array, but still keep it for some usage. We can store it in a variable…
The output will be Wagner given our original added array.