+ 1
In the code I've used array splice method, why it only removes one item ? As I've used -1 as index and 3 as remove count. Help!
2 Answers
+ 1
-1 is last,
3 items from last is only last,
if you want to remove last three,
should be splice(-3,3)
0
Oh, Thanks!đ
My bad !