JS

JavaScript Code Output Challenge - output of the c...

29.

What is the output of the following code snippet?

const arr = [1, 2, 3, 4, 5];
const slicedArr = arr.slice(1, 3);
console.log(slicedArr);

[1, 2, 3]

[3, 4]

[1, 2]

[2, 3]