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

Stats:

CreatedAug 5, 2015
PublishedAug 5, 2015
Warriors Trained10673
Total Skips134
Total Code Submissions17067
Total Times Completed8346
JavaScript Completions8346
Total Stars54
% of votes with a positive feedback rating88% of 385
Total "Very Satisfied" Votes313
Total "Somewhat Satisfied" Votes53
Total "Not Satisfied" Votes19
Ad
Contributors
  • pitieu Avatar
  • joh_pot Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
Ad