javascript pop 1st element from a lsit code example
Example: javascript array remove first
// example (remove the last element in the array)
let yourArray = ["aaa", "bbb", "ccc", "ddd"];
yourArray.shift(); // yourArray = ["bbb", "ccc", "ddd"]
// syntax:
// <array-name>.shift();