1var fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
2var citrus = fruits.slice(1, 3);
3// ["Orange", "Lemon"]
1const ar = [1, 2, 3, 4, 5];
2
3// slice from 1..3 - add 1 as the end index is not included
4
5const ar2 = ar.slice(1, 3 + 1);
6
7console.log(ar2);