const array = [1,2,3,4,5]; const firstElement = array.shift(); // array -> [2,3,4,5] // firstElement -> 1