Lesson 46: Mastering JavaScript Rest parameters and spread syntax with challenges!
🧾 Rest Parameters (Gather)
Purpose: Collects all remaining arguments passed to a function into a real array.
Syntax: function myFunc(a, b, ...rest) { }
Rule: Must be the last parameter in the function definition.
✅ Basic Example:
function colle...
javascript-day-1.hashnode.dev5 min read