The slice() method in JavaScript can be used on an array to return a shallow copy of a portion of the array, based on the start and end indices passed. Learn three different ways to use array slice in ...