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