JavaScript

Rest Parameters

Definition

The `...` syntax used in function parameters to collect all remaining arguments into an array. Unlike the `arguments` object, rest parameters produce a real array.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms