JavaScript refuses to run the code below. Which statement correctly describes the problem?
function track(event, ...details,) {
return `${event}: ${details.join(", ")}`;
}
console.log(track("click", "button", "home"));
Trailing commas are allowed after normal parameters, but not after a rest parameter, because nothing may follow it.