Lesson

Add and Remove Elements in an Array Using Splice

Learn how to use splice with one, two or three+ arguments. With one argument splice removes all elements past that index. With two arguments it removes the number of elements specified past the first argument index. With three+ arguments it removes the...

Duration
1 min
Access
Free
Transcript
Available

Learn how to use splice with one, two or three+ arguments. With one argument splice removes all elements past that index. With two arguments it removes the number of elements specified past the first argument index. With three+ arguments it removes the elements specified and adds all elements passed into the function.