Lambda saysslice copies a section (non-mutating); splice inserts/removes in place (mutating).
slice(start, end) returns a shallow copy of a range and leaves the original alone — great for safe sub-arrays. splice(start, deleteCount, ...items)changes the array: removing, inserting, or replacing. The names are similar; the behaviors (copy vs mutate) are opposite — a common mix-up.
Power-ups you unlock
slice copies a range (non-mutating)
splice removes/inserts in place (mutating)
slice(a,b) end is exclusive
splice returns the removed items
The Mutator attacks — common mistakes
Confusing slice (copy) with splice (mutate)
Off-by-one with slice’s exclusive end
Forgetting splice changes the original
Boss battleslice the middle of an array, then splice to remove and insert items.