slice() Example 1 slice() Example 1 This example defines an array [2, 5, 9, 13, 34, 57] then creates an array made up of some of its items.
This example defines an array [2, 5, 9, 13, 34, 57] then creates an array made up of some of its items.