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.
I also used the same variable name.
beep-boop I thoroughly enjoy this approach!
beep-boop Thats very clever beep-boop
same for me
Do you call
reduce
in your code?If yes, is it possible that when you call
somevariable.reduce
in your code, thesomevariable
isundefined
?beep-boop hello,
My code passes all test but this one: "Testing for wrong test 1". It throws the following error: "TypeError: Cannot read properties of null (reading 'reduce')". I read about it and I found that this error occurs when:
Can anyone point me in a direction to solve this issue? beep-boop
This comment is hidden because it contains spoiler information about the solution
This is what i tried to do, but I kept overthinking it and ended up with a much verbose and confusing code. Ill consider this approach in the future!
Thanks for displaying multiple approaches to this Kata!
nice one!
nice!
loved this one!