js splice to end code example Example: splice javascript let arrDeletedItems = arr.splice(start[, deleteCount[, item1[, item2[, ...]]]])