This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Description
Refers : freeCodeCamp/freeCodeCamp#9501
by @wiseleo:
Someone apparently copied the explanation from splice.
Modify the array with slice() and return it.
Slice does not modify arrays.
The slice() method returns a shallow copy of a portion of an array into a new array object. - Source: MDN
The entire explanation is problematic:
- This solution uses the slice() function. OK
- The argument
howMany is the number of elements to be removed skipped since beginning of array starting with arr[0].
Modify the array with slice() and return it. Return the remaining array without modifying original array