Removes the last element from an array and returns it.
arrayObj.pop( )
The required arrayObj reference is an Array object.
If the array is empty, undefined is returned.
Version 5.5
push Method
Applies To: Array Object