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.
Works, thanks.
No, the solution would be using an initial value. MDN Docs about reduce.
This comment is hidden because it contains spoiler information about the solution
reduce
isn't used in the solution so I guess you're using it in your code (and you're not setting an initial value and using it on an empty array), can't tell you more without seeing it.I have a problem with the last test. Following error is comming up at the final test: 'Reduce of empty array with no initial value'. I tried to modify the input with
Array.slice(0)
but it doesn't work. I'm sure that it will work with any random test. What's wrong with this kata?Same, for the life of me I can't figure it out - I try to change my rounding and it seems to mess another test up
Due to inconsistency in rounding seconds I cannot pass all tests. I have difference of 1 second... Any solutions?