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 you for your suggestion. Nobody is taking it. Closing.
Yeah, I get that error too
Thanks alot, it works!
1 year = 31536000 seconds
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);
For what? I don't think that someone would get any benefit of cheating. However it's not very pleasant to see that your solution passes the "open" testcases and fails on hidden ones - without any explanation...
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.
But in this case was a thing of copy pasting the exact same code in the given documentation. Didn't like, didn't learn anything :(
Wouldn't that make it trivial to just write something that spits out the correct answers without solving the problem?
You are missing a
)
at the end of the if-statement:if (!isItInArray(a[i], b))
Directions unclear, rage quitting this kata.
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
Loading more items...