JS

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

30.

What is the output of the following code snippet?

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

undefined

object

array

number