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.
can someone explain why return has to be stated twice
This comment is hidden because it contains spoiler information about the solution
I'm still green for this
nice
This comment is hidden because it contains spoiler information about the solution
Very readable. It could be condensed a bit but it is very easy to understand and well written. Great work!
Hmmm
Great solution
I'm sorry if I don't understand something, but this solution can pass test with empty array, isn't it?
Smart!
What is the year of that solution?
good work!
This is the first time my solution has matched the top solution! First time I've used array.map() as well.
Actually, the machine only knows what it will do with every position where you write a 'name'. It doesn't in fact read the name, to it it's just a code that means "this position, which is named 'name' will be coded accordingly with that which the function 'map' is already preprogrammed to do".
It's a common mistake when we are beginners trying understanding what is 'written', once that we humans are used to subjectively give written symbols intrinsic meaning, but the machine see things in a different way. You'll get used sometime, just don't give in.
you have to use the
spoiler flag
, otherwise everyone can see the codeLoading more items...