JS

JavaScript Code Output Challenge - slice original ...

24.

What will be the value of arr after executing the following code?

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

[1, 3, 4, 5]

[2, 3]

[2, 3, 4]

[1, 2, 3, 4, 5]