JScript  

pop Method

Removes the last element from an array and returns it.

arrayObj.pop( )

The required arrayObj reference is an Array object.

Remarks

If the array is empty, undefined is returned.

Requirements

Version 5.5

See Also

push Method

Applies To: Array Object