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.
It looks good, but why don't you declare the variable r with 'var r = n;' and why do you use (--n > 0) instead of (--n)?
What do you do about the non-enumerable objects?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It took me also a while to understand his meaning, but in the end he wants to change the 'this'-argument of the function if a variable 'ctx' is set.
I have tried it in Iceweasel (x64) and regexp seems very fast if you don't use custom replacement functions.
Actually, I understood that only ASCII-characters should be counted, and I was later stunned by the fact that almost no other solution bothered about this.