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.
This comment is hidden because it contains spoiler information about the solution
in fact, the premise of the question is not right
"add(1)(2);
// returns 3"
No. It is not. This returns a function.
In the tests, it is the == operator that does the conversion, as you can read it here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
"If the operands are of different types, try to convert them to the same type before comparing:
When comparing a number to a string, try to convert the string to a numeric value.
I was heading towards this solution, but I didn't finish...
Great clever work!
Great joke though!