The first argument in the splice function is the index you want to begin with. The second argument is the number if indices to remove.
You can also replace or insert values into your array with the splice function. This is done by simply adding the elements to insert into your function.