The fill() method is small but useful. It lets learners replace a range of values in one step and makes a good transition from simple indexing to array methods.
const seats = ['A', 'B', 'C', 'D', 'E'];
const filledSeats = [...seats].fill('X', 1, 4);
Use fill(value, start, end) to replace only part of the array.