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 comment is hidden because it contains spoiler information about the solution
a very good explanation, thank you very much!
This comment is hidden because it contains spoiler information about the solution
In JS, when you add a boolean to a number, true is converted to 1 and false is converted to 0. Poor readability and too dubious to be used in actual product. You could easily turn it to a ternary for explicity by adding a "... ? 1 : 0" at the end. On another note, using one letter variables is even worse practice elsewhere, although not much of a problem here.