Javascript/Ajax/JQuery

JavaScript : Array.splice() vs Array.slice()

1. The splice() method returns the removed item(s) in an array and slice() method returns the selected element(s) in an array, as a new array object. 2. The splice() method changes the original array and slice() method doesn't change the original array. 3. The splice() method can take n number of arguments: Argument 1: Index,...

by Vivek Garg
Tag: JavaScript Array
18-Feb-2015