const numbers = [3, 6, 4, 8, 9, 19, 15, 21, 45, 87]; const numberSplice = numbers.splice(4, 3, 1, 2, 3); console.log(numberSplice); //[ 9, 19, 15 ] console.log(numbers); // [3, 6, 4, 8, 1,2, 3, 21, 45, 87]