What is the output of the following code snippet?
const arr = ["apple", "banana", "orange"];
const newArr = arr.slice(1, 2);
console.log(newArr);
["apple", "banana"]
["banana", "orange"]
["banana"]
["orange"]
This question is part of this quiz :
JavaScript Arrays