WeCodeAcademy
❮ pop()unshift() ❯

shift()

Removes and returns the first item.

Group: Array

Syntax

array.shift()

Example

Examplejavascript
Open in editor »

← All of JavaScript Reference