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 wanted to use true or false on my code but didnt know how to proceed.
i will never understand java
A lot of solutions with
var
are from beforelet
andconst
were released in JavaScript. I wholeheartedly agree though!in reduce the two param is the defulat number
i think you donot add 0
I would recommend using 'const', or if not possible 'let' instead of 'var'. just for scope reasons as best practice
another clever person
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
такое решение не проходит проверку в случае аргумента array=[88,19,32,75,74,66,98,56,65,67,68,48]. Среднее для такого массива будет 63, а решение в одну строчку дает результат 62,99999999999.
simple and clear solution in one line
neat
that's how you do it!
Ninja code. Neat. But hard on the eyes.
Please use a spooiler flag, comments are visible to everyone by default (I put the flag for you this time).
Great indeed!
Loading more items...