JavaScript | Modern JavaScript ES6 | Question 8

Last Updated :
Discuss
Comments

What does the rest operator (...) do?

Combines multiple arrays into one

Collects remaining elements into an array or object

Spreads an array into individual elements

Executes asynchronous code

Share your thoughts in the comments