var fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
var citrus = fruits.slice(1, 3);
// ["Orange", "Lemon"]
let subArray = array.slice(startIndex, endIndex)
// ['a', 'b', 'c'].slice(0, 2) === ['a', 'b']
let subArray = array.slice(startIndexInclusive, endIndexExclusive)
let subArray = array.slice(startIndex, endIndex)
// endIndex is optional, if ommited it will go to the end of the array.