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.
Finding out the syntax to get the return statement to work was difficult. Other than that it was a good kata. IF you could smooth out the syntax of the return statements I think it would make it an overall better kata. (Javascript)
There are issues with some of the submission test cases. For example the fourth one has these two numbers listed as the price, and discount. However, the Math.round() cannot be used because of the next test case. Either make your test cases more exact or make sure the numbers always come out to nice whole numbers.
373.85 11.2
Expected: 421, instead got: 421.0022522522523
I found the directions to be confusing. Maybe actually show what you want. i.e. explicitly say that 2 & 4 get squared and you just add 1,3, and 5. After I figured out the actual objective the coding came easily.
For whatever reason, when finding a number where the lower range is 0, no matter what my code won't be accepted. I am not sure if this has to do with an error or not.
I thought the instructions were a little unclear. Maybe state that each archer is represented by the number of arrows in his quiver which is represented by a number in the array.
I understood the instructions, but when it came to submitting, the first two tests passed, but the third was saying there was an error. I'm not sure what the issue is. I tested the code on another source and it worked fine with every name.
While I am running the Test Cases, my function is returning 0. From there I am told that the expected output is 0. What is going on?