Given text = "planet", what does text.slice(1, 4) return, and what happens to text?
Explanation
slice starts at index 1 and stops before index 4, producing "lan" while leaving the source unchanged. Including the character at index 4 would wrongly treat the end boundary as inclusive.