remove first element of array javascript

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"]
fruits.shift()var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();var list = ["bar", "baz", "foo", "qux"];
list.shift()//["baz", "foo", "qux"]var arr = [1, 2, 3, 4]; 
var theRemovedElement = arr.shift(); // theRemovedElement == 1
console.log(arr); // [2, 3, 4]var items = ["A", "B", "C", "D"]
fruits.shift()const arr = ['foo', 'bar', 'qux', 'buz'];

arr.shift();	// 'foo'
arr;			// ['bar', 'qux', 'buz']
Source

Also in JavaScript: