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.
impresive man
could use ternary operator to make this shorter
why 2 ?
Bitwise operators perform operations on a binary equivalent of decimal numbers bit by bit
see examples: [3 & 1 == 1 because 0011 & 0001 == 0001] and [2 & 1 == 0 because 0010 & 0001 == 0000]
Thanks to your solution I learned how bitwise AND (&) works ;-) Thanks!