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.
'Fixed, see comments above'
I didn't think the instructions were clear enough to be honest
I like this one! it's fairly obvious, but I hadn't seen that I could pass an initial value to the reduce function to prevent it breaking if the array passed in was empty.
Realy nice solutions!!! I take this as a note)
Nice. Never thought of instantiating another variable within one loop.
This comment is hidden because it contains spoiler information about the solution
Also, toFixed() gives bad behaviour sometimes; best practice to round x to the y decimal digit is to use
Math.round(x*Math.power(10,y))/Math.power(10,y)
.In this case
Math.round(x*100)/100
should cut it.You're returning a String, while you're expected to return a Number.
This comment is hidden because it contains spoiler information about the solution
I think you meant to say that a solution with
String.prototype.replace
is accepted.Thanks for reporting, it is fixed. :)
Sorry I didn't get you. Could you be more specific?
This has major issues but I have no pints to set it, kata description is totally wrong (there is wrong message, int variable mentioned while js has number and the mechanics are not clear enough) and tests are exceeding max number value
Be consistent with the instructions and tests. The instructions and the test ask for different error messages.
slightly repetitive
Instructions are incorrect. Random tests prevent it from working in javascript, but when resubmitted with same solution it works.
Loading more items...