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.
What hint do you recommend?
This comment is hidden because it contains spoiler information about the solution
Details states: "To make things simpler, it will only have to deal with simple values and objects and arrays containing strings, booleans and numbers, without taking into account regular expressiones, dates and functions"
One of the submit tests includes an array with an object.
[ 1, 2, null, undefined, { name: 'Joe' } ]
I recommend to 1) update the detail to state arrays containing objects, string, booleans, and numbers or 2) remove the test.
Many thanks for looking over my code and spotting this :)
This comment is hidden because it contains spoiler information about the solution
Can someone give insights into the below test spec:
Totally agree - the confusion is with how the Date object works whereby months start from 0 (January) and not 1 (February)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In the instructions the first test shows the result as 'dbca' when it should be 'dcba'.
Test.assertEquals(reverse("abcd"),"dcba","Reverse abcd");
Thanks for sharing that tip. I found a really nice explanation of currying here: http://www.drdobbs.com/open-source/currying-and-partial-functions-in-javasc/231001821?pgno=2
This comment is hidden because it contains spoiler information about the solution
For this spec "Result - what is expected: 2 decimal places precision NUMBER.", I am trying to use .toFixed(2). None of the tests are passing, does anyone have any recommendation?
Thanks a bunch, will keep that in mind :)
This comment is hidden because it contains spoiler information about the solution