6 kyu
sum function
605skibinska
Description:
Write a sum function which will work properly when invoked using either syntax below.
sum(2,3); // Outputs 5
sum(2)(3); // Outputs 5
HINT : use closures
Fundamentals
Similar Kata:
Stats:
Created | Aug 10, 2016 |
Published | Aug 10, 2016 |
Warriors Trained | 1000 |
Total Skips | 34 |
Total Code Submissions | 2302 |
Total Times Completed | 605 |
JavaScript Completions | 605 |
Total Stars | 18 |
% of votes with a positive feedback rating | 90% of 136 |
Total "Very Satisfied" Votes | 112 |
Total "Somewhat Satisfied" Votes | 20 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 13 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |