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.
Try lookup how
for in
works.Your solution returns a blank array, it should have returned an array with "a" and "b".
I have also got the same problem with this approach. Use setFullYear() instead of new Date().
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
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)
I think the instructions are misleading. You are talking about the 16th of October in 1990, which was actually a Tuesday (and not a Friday). The object new Date (1990, 10, 16) refers to Friday, the 16th of November in 1990, since months are starting at 0.
Hi Richard, you are correct.
I've changed a description. Thanks for spotting it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...