When passed a parameter
let arr = [1.2.3.4];
arr.splice(1);
document.write(arr); // Delete all elements with subscript 1 and after
Copy the code
When two arguments are passed in
When three arguments are passed in
Does the original array change?
Will change!!