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.
good approach using array destructuring
I agree
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?
This comment is hidden because it contains spoiler information about the solution
Here, yes, but they're visible in the homepage too.
oh sorry. I thought discussions under the solutions section were only visible if you can already see solutions.
Use spoiler flag next time.
Seems they thought it would prevent mutating the input.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution