when you do newArr = arr, whatever you do to newArr will affect arr because you have made a soft copy. When you make a soft copy, you’re not actually copying the values of arr but rather a reference to arr.

[…arr] soft copies the items in the array. If none of the elements of arr are objects (which they aren’t in the test cases), then what you do to newArr will not affect anything in arr.