Array.slice()
slice() is a method of javascript array datatype that helps to get a subarray from an array. It doesn't change the original array.
Syntax
const arr = [1,2,3,4,5,6]
const slicedArr = arr.slice(1,4) //Here the first parameter represents t...