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.
Oh, I didn't know. Thanks!
Because 0 is converting to "false", like everything else without value. You can read more about it here https://www.w3schools.com/js/js_booleans.asp.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Some people say that it's a "hacky way" to use this statement. You can read about it here, for example - https://medium.com/trabe/using-switch-true-in-javascript-986e8ad8ae4f.