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.
Used same approach for names. Thanks for the help.
Thanks, for feedback, I have now changed it to use a Set.
Thanks, fixed, please review.
Thanks, Blind4Basics, fixed the issue and also made my reference function different.
Appreciate the feedback, but I need you to help and elaborate here. The function has one input, an array of votes, and I have tried to prevent this from being mutated, so what else can be modified?
Reduced the number of elements, error message should be more concise now.
The object is no longer repeated.
Randomised name and party.
Can you provide an example, please? Thanks.
I tried to prevent array mutation as follows [...votes] when passing votes into the functions and the output message. Please provide example if this is not correct.
I tried to prevent array mutation as follows
[...votes]
when passing votes into the functions and the output message. Please provide example if this is not correct.Prevented array mutation between function calls.
Vote count is now unique in test cases.
Test cases expanded to 100.
Loading more items...