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.
You might be getting lucky here, since there is no guaruntee that for...in will iterate over the characters in order. Am I missing something?
I'd say so, except it might be clear for JS to say "add a new method to the String object".
I've changed the description, is it better now?
This description isn't clear.
May be this will help you
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed
I had the exact same and for some reason it didn't work for the 2nd test case. What do you think would be a way to implement rounding to the 2nd decimal place?