Read an array slice
For slice(start, end), the start is included and the end is excluded.
const items = ["a", "b", "c", "d"];
const selected = items.slice(1, 3);
The selected range contains the elements at indexes 1 and 2.
What is selected after items.slice(1, 3)?
Why it matters: Knowing slice boundaries prevents off-by-one mistakes when selecting ranges.