In destructuring assignment, _________ can be used to gather the rest of the elements/properties into a new array or object.

  • Spread operator
  • Rest operator
  • Concatenation operator
  • Merge operator
In destructuring assignment, the correct option is the "Rest operator." The rest operator allows you to gather the remaining elements or properties into a new array or object, making it a powerful tool for working with structured data. It is denoted by three dots (...).
Add your answer
Loading...

Leave a comment

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