Javascript Pop() Function

The pop() function of array object removes the last element of the array and return removed element. Use it for example to remove last element from an array.

Syntax

Javascript Pop() Function Example

This will produce following result