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.
"add" and its results must return function. Otherwise such results couldnt be called, so no chaining wouldn't work.
The kata's description doesnt show important nuance - the result must play as function in context of comparison or arithmetic operations, e.g.
NodeJS command line interface output result of last operation as is - without any conversion, so you see function. It's because only a primitive value can evaluate to primitive without conversions (explicit or implicit). And browser console typically performs conversion to a string when it prints result of last command.
Yes, it appears node handles the toString and valueOf differnelty than browsers normally do.
I tried to run this on Nodejs and it returns [Function] toString : [Function]. I think it only works on browser.