Q. What does the rest operator do?

  • (A) Copies arrays
  • (B) Spreads arrays
  • (C) Collects remaining arguments
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Collects remaining arguments
Explanation: The rest operator (...) collects remaining parameters into an array.
Explanation by: Chandani
The rest operator (...) collects remaining parameters into an array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
69
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
91%
Success Rate