Open raisedadead opened 8 years ago
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:
howMany
slice()
The changed can be done here http://forum.freecodecamp.com/t/algorithm-slasher-flick/16047
Refers : https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9501
by @wiseleo:
Someone apparently copied the explanation from splice.
Slice does not modify arrays.
The entire explanation is problematic:
howMany
is 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.