(function(){ window.OpenPopKa = true;}())

For function "sumOfDigits", write write the missing recursive call. This function takes a non-negative integer and returns the sum of its digits. For example, sumOfDigits(1234) returns 1+2+3+4 = 10.

[editor.getValue()]
if (guess[0] != initEditor) { console.log(guess[0]); window.codeValue = guess[0]; window.progexType = "RecurTutor"; window.summexName = "RecCSumOfDigitsPROG"; } else { return ""; }

Use mod (%) to get the value of the last digit.

Return the value of the last digit plus the value of recursive call