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.
:)
This comment is hidden because it contains spoiler information about the solution
should be better now
You don't need
map
if you don't need to create a new array. You can use.forEach
if you just want to iterate through the array.If you do it like that, won't it do the divison in every iteration? On top of that, it divides before adding
ageSum
.I want to find my own solution)