Rest parameters The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent variadic functions in JavaScript. Syntax function f(a, b, ...theArgs) { // ... } Copy to Clipboard Description A function definition's last parameter can be prefixed with "..." (three U+002E FULL STOP characters), which will cause all remaining (user s..