Core JavaScript

Intermediate JavaScript

JavaScript Reference

JavaScript Shift() Function Example - Remove First Element




JavaScript shift() method remove first item in array and return that removed item.

Example-Code:

Example-Results: