Array.pop

Array.pop

Array.pop

Function

Removes and returns the last element of the array.

Syntax

Parameters

No parameters.

Return value

TypeDescription
Any/EmptyReturns the deleted element if the array is not empty; returns Empty for an empty array.

Example

Notes

  • This method will modify the original array.