Treehouse Quick Tips
Treehouse Quick Tips
Treehouse
How to Use the Splice in JavaScript
3 minutes Posted Jan 29, 2013 at 7:36 pm.
0:00
3:34
Download MP3
Show notes
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.