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.
The left side of the comparison determines if the variable is NOT an "existing"
true
or an "integer""not a decimal
", the result isundefined
If the left of the comparison fails, then we move to the right comparison
If the integer is odd then return false, else return true.
This comment is hidden because it contains spoiler information about the solution
May someone help explain to this noob how this works? My solution was different but this is a much more quick and sleek way of solving the problem. I guess the part that gets me is the if boolean segment. By default is boolean (the argument inside the function) True?