JavaScript Array slice()
The JavaScript array slice() method is used to return a new array containing the copy of the part of the given array. Note: The original array will not be modified. It will return a new array. Syntax: array.slice(start,end) Parameters: start: It is an optional parameter and represents the index from where the function starts to … Read more