unshift() Example 1 unshift() Example 1 This example defines an array [2, 5, 9] then adds a 0 in the first slot.
This example defines an array [2, 5, 9] then adds a 0 in the first slot.