Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `sumWithBase(base = 10, ...nums)` returning `base` plus the sum of the rest arguments.
+ 1 hidden test run on Submit.
A default parameter plus rest parameters lets base fall back to 10 while the remaining arguments are summed.
Run your code to see results.