Collect the remaining array values with rest syntax.

Rest Values

rest_values.js
const firstScore = 4;
const [head, ...tail] = [firstScore, 2, 3];
const tailTotal = tail.reduce((sum, value) => sum + value, 0);
const total = head + tailTotal;

console.log("head=" + head);
console.log("total=" + total);
rest-values In an array pattern, `...tail` collects the remaining values into a new array. Use it when the first values have special meaning and the rest are a group.