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 is irrelevant. We are interested in undamaged arrows, it doesn't matter if there are damaged ones and it isn't checked.
Thats beautiful, but I don't understand how it passess empty array test. What should I read about to fully understand that solution?
I read it as: "Return true, if some of 'a' dosen't have 'damaged' value. " Empty array dosen't have damaged, so why isn't it truthy?
And the result is indistinguishable from if we had!
I'm sorry what would you like it to say?
Wrong error message.
When table is wrong, the message is "Empty array"
I missed that - have redone.
Sorry I am quite new in javascript
the kata description ask to use template string
Why ?
It's just a loop!!
It's hard to read
I know that, but if the input string is a decimal number.
For example "1337.42", it would be converted to Int32 and remove the decimals, making it 1337.
So I don't know why "ShouldPass1" passed.
it don't loose decimal because PI has decimals. When you multiply an integer with a double or a float, the result is an double or a float, like here.
I am at a lose as to why this passed testing.
It converts to an Int32, it should lose all decimals and end up with the wrong result.