Implement a function size(num) that sums numbers by accepting a number and allows for repeated calling with more numbers until it is called without arguments.
The function should:
Examples
size(1)(2)(3)(); // 6 size(5)(10)(15)(20)(); // 50 size(7)(); // 7
JavaScript Function
No test results yet
Click "Run" to execute tests