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 is the prettiest
nice one
Because you want the count of the positive numbers. Each x that is positive gets represented by 1 in the new array. A sum of the array with 1s is essentially a count of the positive numbers.
Great solution! Thanks!
Mind if you explain the code...very nice solution by the way
i did not get the 1 for x why 1 ?
whiy the $$?
I liked this solution better that the one at the top, this one seems more readable to me.
This is so smart🙌🏻
It's a good solution.
I didn't know about filter function only needs a conditional to filter lists.
Well. It was more simple solution than mine.
Good idea!
done by B4B ~~
Well, it's a property of
circle
object. As JS is a dynamically typed language you have to either handle cases if there's no such property, or hope that everything will be okay ;)Loading more items...