.shift() Removes the first element from an array and returns it. let arr = [1, 2, 3, 4, 5]; var result = arr.shift(); // result: 1 // arr: [2, 3, 4, 5]