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 am failing at test case 23 and looks like the it is failing for function
I am getting
x is undefined error
.I do not know how it is invoked but isn't it
"return function (x)"
instead of"return function (a)"
?Please check.
It is a great kata and helped me learn some less known components in javascript (y)
Neat. Thank you for the explanation (y)
I am able to pass most of the tests, but it fails for a big number with ans = "689".
Looks like the answer is beyond javascript number limit. Have anyone completed this successfully in javascript? Or am I missing something?
Expected: 689, instead got: NaN
21 Passed
1 Failed
0 Errors
[a,b] assignment (y)
That is clever!
Ninja!
This comment is hidden because it contains spoiler information about the solution