7 kyu
Sum of all arguments
4,985 of 11,933user578387
Description:
Write a function that finds the sum of all its arguments.
eg:
sum(1, 2, 3) // => 6
sum(8, 2) // => 10
sum(1, 2, 3, 4, 5) // => 15
TIPS:
ruby/python : http://lmgtfy.com/?q=Ruby+splat+operator
JS/Coffeescript : http://lmgtfy.com/?q=Javascript+arguments+variable
Fundamentals
Similar Kata:
Stats:
Created | Sep 7, 2014 |
Published | Sep 7, 2014 |
Warriors Trained | 16205 |
Total Skips | 1615 |
Total Code Submissions | 28125 |
Total Times Completed | 11933 |
JavaScript Completions | 4985 |
CoffeeScript Completions | 199 |
Ruby Completions | 1353 |
Python Completions | 4878 |
Clojure Completions | 745 |
PHP Completions | 461 |
C Completions | 164 |
Scala Completions | 39 |
Total Stars | 96 |
% of votes with a positive feedback rating | 89% of 1045 |
Total "Very Satisfied" Votes | 844 |
Total "Somewhat Satisfied" Votes | 171 |
Total "Not Satisfied" Votes | 30 |