Question
Is .slice
suppose to modify the array?
Answer
No, .slice
does not modify the array, it just makes a copy of the part of the array you want and gives you a new array with the values of the original’s array specified segment.
Is .slice
suppose to modify the array?
No, .slice
does not modify the array, it just makes a copy of the part of the array you want and gives you a new array with the values of the original’s array specified segment.