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.
I've past all the tests & attempts but it says my code has timed out.. why?
This comment is hidden because it contains spoiler information about the solution
Why the carrot ^ ?
This comment is hidden because it contains spoiler information about the solution
ahh thanks, javascript is strange how it assumes truthy/falsy values
Also still lost with this one...
edit: oh, it's the truthy/falsy values of 0 & 1 that allow the ternary operator to work
does (==) return either a 1 or 0?
Ahh, could've made this way shorter & quicker.
Atleast if anyone is stuck they can check out a long-winded explanation.
The power of ES6