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 repetition is a good example of when it's recommended to use an abstraction to separate the logic (your
if
s andelse
s) from the data of a similar format (the roman numerals and the values they represent).Since the data is in a clear
key: value
format, an object{}
would be great.Good luck, and happy coding! :)
Bloat
Description could be a little better... figuring out the desired API was a challenge.