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.
very clever!
For to get the total values (tot), you could use reduce() method in the array.
LIKE THIS:
let tot = Object.values(json).reduce((p, c) => p + c);
If you don't see all 100 random tests finished running, that means you haven't finished all the tests and it got terminated mid-test :)
And please don't complain about tests seem off,
23
people have already solved the kata so it's obviously completeable :PI agree your tests seem off, passed all test but still threw a timeout error.
This is my first time using functional programming to solve the problem =)