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.
This answer erroneously passes. It should not pass because something like
Pas$w0rd//
gets through, but there's no test case to catch that.Welldone
good work
Wasn't specified in the kata description but that's a good edge case to consider, I suppose.
It doesn't work if n === 0, couse output must be empty string "";
Well, in reality you should be hashing the password, which will destroy a user's ability to inject anything with it, so this whole kata's kind of on iffy ground.
The password isn't url so I think you don't use encodeURI. Do not use a function that has no connection with the subject, try to keep the semantics of the code ;)