
How to Use the Splice in JavaScript
About this episode
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.
More from Treehouse Quick Tips
The real value of events you attend is in the people you meet and connections you make. In this Treehouse Quick Tip, author and blogger C.C. Chapman shares his strategies for successful networking and…
Found a photograph online that you'd like to use on your site, but not sure where it came from or who took it? Or are you a photographer who wants to know where your work is being posted? In this Tree…
In version control, best practice is to commit your work in discrete chunks. Unfortunately, sometimes that's easier said than done when real life gets in the way. In this Treehouse Quick Tip, we'll le…
Many of you are already looking for the next opportunity to work on a freelance project or to get hired by a company. In this Treehouse Quick Tip, Dan Gorgone explains the importance of preparing deta…
It's tough to find a site on the web today that doesn't include Facebook, Twitter, and other social media logos in its design. You probably want to include them on your own site, but where do you find…