Write a recursive function that returns the sum of the digits of a non-negative integer.
sumDigits(123) => 6
sumDigits(0) => 0
sumDigits(999) => 27
Waiting for you...
CodeBot will comment on your code as you write...
Click "Run Code" or press Ctrl+Enter to test your solution