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.
This comment is hidden because it contains spoiler information about the solution
Thanks both. I've actually got no issues at all with syntax and it's nothing to do with JavaScript itself. My issue is with understanding higher-order functions. That's something I struggle a lot to understand currently.
This comment is hidden because it contains spoiler information about the solution
Best practice if efficiency is needed. :P
I did it like this as well. But, bonus points for efficiency. You never know, it may come important in very constrained circumstances re. resources some day!
I did this too but I don't understand at all how/why it works. Could you explain to me? Thanks. :-)
This comment is hidden because it contains spoiler information about the solution
Honestly, I really don't get why that is the case. Sorry to bother you, why is that so?
Can you explain how this works?