7 kyu

Javascript Mathematician

8,359pitieu

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 Trained10697
Total Skips134
Total Code Submissions17098
Total Times Completed8359
JavaScript Completions8359
Total Stars54
% of votes with a positive feedback rating88% of 386
Total "Very Satisfied" Votes313
Total "Somewhat Satisfied" Votes54
Total "Not Satisfied" Votes19
Ad
Contributors
  • pitieu Avatar
  • joh_pot Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
Ad