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.
I had broken this same solution up into two parts. Great to know it could be done like this.
I always forget that you can do this in one return statement and end up creating a new string first. Bravo!
Should the parameters of the code change in future, for example scores could reach up to 10:0, then this would result in a large amount of code needing to be written. While this does solve the task at hand, you may want to consider how else you could solve this so that it could be adapted to different scorelines.
This comment is hidden because it contains spoiler information about the solution
Great solve. This taught me about conditional operators and was incredibly helpful. Thanks.