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.
Is it better to set
health - damage
to a variable to have the equation process just once? I'm still trying to understand pass-by-value vs pass-by-reference, and whether it even applies in situations like this. Obviously the gains are essentially non-existent in this exact case.From tooling's perspective, it is a good practice. While the return type can be inferred, the parameter's could normally be anything which is safe to convert to a number:
Gotta type those arguments.