I know that when it comes to
array.slice() what we normally do is this:
var arr = [1,2,3,4]; var zeroOne = arr.slice(0,1);
and the 0 means it starts to cut from
arr ; 1 means it stops cutting before
arr, so in this case
var zeroOne===1, because we specifically said: “we want you to cut the array from element 0, and only cuts one element”
then why does
var one = arr.slice(1) gives you 2,3,4???
is it because what
arr.slice(1) actually means
arr.slice(1, to the end) ??