brainexplode!!!! my friend your answer is really crazy jajajaja you're god and i'm not kidding you
This is graceful
What you mean by "wasn't written on just js"? When you shorten the code it doesn't mean that you are using different language.
The "if" and "else" statements don't just come of JS.
For anyone reading this 6 years later, this comment is not valid anymore. Please use str, this is much more readable than str.charAt().
woow nice use of recursion over there
This comment is hidden because it contains spoiler information about the solution
I did a sum() on a generator which essentially does the same thing - which reduces LOC but is less clean. I guess OP just wanted to keep the code clean and given the factorial nature of the input, recursion stack won't run out.
Why not using a loop rather than recursion?
It's been said before, and use spoiler flag next time.