7 kyu
Sum of all arguments
5,143 of 12,290user578387
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 | 16702 |
Total Skips | 1622 |
Total Code Submissions | 28738 |
Total Times Completed | 12290 |
JavaScript Completions | 5143 |
CoffeeScript Completions | 199 |
Ruby Completions | 1355 |
Python Completions | 5043 |
Clojure Completions | 747 |
PHP Completions | 480 |
C Completions | 187 |
Scala Completions | 40 |
Total Stars | 98 |
% of votes with a positive feedback rating | 89% of 1063 |
Total "Very Satisfied" Votes | 860 |
Total "Somewhat Satisfied" Votes | 173 |
Total "Not Satisfied" Votes | 30 |