Share via


pop Method (JScript 5.6) 

Removes the last element from an array and returns it.


arrayObj.pop( )

Remarks

The required arrayObj reference is an Array object.

If the array is empty, undefined is returned.

Requirements

Version 5.5

Applies To: Array Object (JScript 5.6)

See Also

Reference

push Method (JScript 5.6)