shift() Example 1 shift() Example 1 This example defines an array [2, 5, 9] then removes the 2.
This example defines an array [2, 5, 9] then removes the 2.