javascript pop from front code example
Example 1: removing first item array js
var list = ["bar", "baz", "foo", "qux"];
list.shift()//["baz", "foo", "qux"]
Example 2: javascript remove first item from array
type answer
var list = ["bar", "baz", "foo", "qux"];
list.shift()//["baz", "foo", "qux"]
type answer