array-3

let arr = [1, 2, "test", "bob", false, 33];

//Get two elements starting from third position
console.log(arr.splice(2, 2));
//Output: ["test", "bob"]