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.
a very good explanation, thank you very much!
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.
Can someone explain this solution?
Holding out just a little while longer without using regular expressions ;)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution