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.
Your first dictionary object has a name and is a
const
, but your second one is not. I guess I'd rather that one also had a name and was aconst
too - for consistency, and just because I think I'm more familiar with that code-style - I think it's clearer that way.You also don't need the
new Regexp
at all - you can just pass in a pure String as the first arg toreplace
.Then this will certainly get my +1 ๐
I think you can remove the "g" from the RegExp! Try without, and see if it passes.
This is wonderful - peachy! ๐
You solved it!
Looks good, but I'm sure that could be shorter / clearer ๐