7 kyu
Javascript Mathematician
8,346pitieu
Description:
You are writing a function that takes two sets of arguments of arbitrary length. The return value will be the sum of the values of all of the arguments.
The function should contain at least 1 argument per set.
calculate(1)(1) // should return 2
calculate(1,1)(1) // should return 3
calculate(1,1)(1,-1) // should return 2
calculate(2,4)(3,7,1) // should return 17
Fundamentals
Similar Kata:
Stats:
Created | Aug 5, 2015 |
Published | Aug 5, 2015 |
Warriors Trained | 10673 |
Total Skips | 134 |
Total Code Submissions | 17067 |
Total Times Completed | 8346 |
JavaScript Completions | 8346 |
Total Stars | 54 |
% of votes with a positive feedback rating | 88% of 385 |
Total "Very Satisfied" Votes | 313 |
Total "Somewhat Satisfied" Votes | 53 |
Total "Not Satisfied" Votes | 19 |