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.
Description formatting is broken.
Code Markdown of description is broken.
String
s (string primitives, that is) cannot be modified in JavaScript. You will always receive a newString
.I appreciate the concern for not modifying input data, I agree it's an important subject, but that's why it's also important to know when you can't make mistakes. If you know when you are safe, you also know when you have to pay attention to be safe (i.e., all other cases).
Wrapping the input string in an array is rather useless. Just pass us the string.
The Random tests are generally required. link