The slice() method returns a copy of a portion of an array.
It takes two parameters, arr.slice([begin[, end]]) :
begin
Zero-based index which is the beginning of extraction.
end
Zero-based index which is the end of extraction, slicing up to this index but it's not included.
If the end is a neg...