WeCodeAcademy
❮ push()shift() ❯

pop()

Removes and returns the last item.

Group: Array

Syntax

array.pop()

Example

Examplejavascript
Open in editor »

← All of JavaScript Reference