Refers : https://github.com/FreeCodeCamp/FreeCodeCamp/issues/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_**
Refers : freeCodeCamp/freeCodeCamp#9501
by @wiseleo:
Someone apparently copied the explanation from splice.
Slice does not modify arrays.
The entire explanation is problematic:
howManyis the number of elements to beremovedskipped since beginning of arraystarting with arr[0].Modify the array withReturn the remaining array without modifying original arrayslice()and return it.