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.
Thanks alot, it works!
Sorry but I have some fundamental problem with ariphmethics in this kata. As far as I understood the rules
1 year = 31526000 seconds (365 days)
1 day = 86400 sec
1 hour = 3600 sec
1 minute = 60 sec
But this numbers gives me wrong results in some tests, I suspect rounding, am I wrong at this:
var r = Math.floor(sec / 60);
var remains = sec - (r * 60);
Something strange with tests in this kata. When I do Run Tests everything green, but when I submit it gives me:
failed on number literal arg.
failed on Number constructor arg.
failed on casted to Number arg.
What does it mean, can you decifer? I have no idea how looks test cases I've failed.
I didn't get this kata, and by the way I think It would be a good idea to show expected value in test message.
Why test fails? I've got Test Failed: Expected:
Lorem ipsum dolor sit amet.
, instead got:Lorem ipsum dolor sit amet.
I'd borrowed solution from mustache.js and It's working I've tested it in my brouser.
This comment is hidden because it contains spoiler information about the solution
It's the same kata as JavaScript Array Filter
Very easy, solution in documentation you've provided