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.
The worst solution is to mutate the original data.
unpowerful
I don't like this solution because you are mutating the function argument.
I don't like this solution because you are mutating the function argument.
why?
very bad for JS, dislike
Thanks for your input. After reading I went to look into it and learned a lot and better practices. Thank you!
This comment is hidden because it contains spoiler information about the solution
two loops
I refuse to solve this kata, it's terrible
Example: the teacher gave the task to find a favorite quote from the Harry Potter book and show it to the whole class.
Solutions without mutation: copy the quote from the book with chalk onto the school board, scan the book page, print the quote from the electronic version of the book and stick it on the board.
Solution with mutation: take scissors, cut out the quote from the book and stick it on the board.
Mutating an argument is the worst thing you can do.
can you please explain why for the benefit of people who are most likely new and don't realise the implications of this (or what mutating even means)
Mutating an argument is the worst thing you can do.
Mutating an argument is the worst thing you can do.
Loading more items...