Consider the following code snippet:
const fruits = ['apple', 'banana', 'cherry', 'date'];
const slicedFruits = fruits.slice(1, 3);
console.log(slicedFruits);
What will be the output of the console.log statement?
Consider the following code snippet:
const fruits = ['apple', 'banana', 'cherry', 'date'];
const slicedFruits = fruits.slice(1, 3);
console.log(slicedFruits);
What will be the output of the console.log statement?