Answer:
Slice
Slice is used to extract the elements of an array and returns the extracted elements in an new array.
Splice
Splice is used to add/remove the element to/from an array and returns the new array after added/removed.
Asked In: Many Interviews |
Alert Moderator