The shift method removes (shifts) the first element of an array.