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.
I forgot to specify my question, but indeed the first line.
Thanks alot!
Pythagoras theorem. It's doing exactly what is asked in the description.
If you meant the first line, it's called destructuring assignment: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
How does this work exactly and how is this concept called?
Every player (element in players array) is constructed into an object:
.name
allows you to access and return the property value. If it would not be there you would return the whole object. For examplePlayer { name: 'a' }
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution