array-4

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

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

/*
    Here we said to JS: starting at position number 3 
    (index 2 since JS is 0 based), and including position
    number 3, give me two consecutive elements
*/