Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Print the input value. Your code is failing when
n=195
, 6 is the expected answer, but your code is returning 15. 15 is 2 digits and the answer always has to be a single digit.I solved it in Javascript and it passes the tests. However, when I try to submit, I receive this error:
ReferenceError: digital_root is not defined
at Object.handleError
at ContextifyScript.Script.runInThisContext
at Object.exports.runInThisContext