Using the rest operator in function parameters collects the rest of the arguments into an ________.

  • Object
  • Array
  • Iterable
  • String
The rest operator (...) in function parameters is used to collect the rest of the arguments into an array. It allows a function to accept a variable number of arguments.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *