Javascript Array Shift Example | Array.prototype.shift()

Javascript array shift() is an inbuilt function that removes the first item from an array and returns that deleted item. It changes the length of the array.