JavaScript card revieweasy
What is the rest parameter in JavaScript?
The rest parameter collects multiple function arguments into a single array. It is represented by three dots (...) before the parameter name.
The rest parameter collects multiple function arguments into a single array. It is represented by three dots (...) before the parameter name.
Jeevan Bhargav
Audited by Creator
This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.