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.
Please check what parseInt does ;)
The description mention that division shoud round numbers down so there should be Math.floor(a/b) instead parseInt() in my opinion.
This is the best explanation of closure
This comment is hidden because it contains spoiler information about the solution
Nice bro, good functional programing way.
This is some funception...
It hurts when trying go inside the functions..
feel like a dream it works
just need to add ~~op(digit) to make it pass all the tests
I was about to write the same comment but found yours. It is a good solution but yeah shouldn't work unless missing something
Why there is no Math.floor in dividedBy function? It shouldn't work properly.
sleek!
maybe this is big man
As someone new to functional programming and function composition, this was incredible. You found a way to pass the outer operand to the inner operator, whereas I could not. Kudos to you!
7 years later, the solution remains cutting edge.
Who said there how quickly everything changes in the JS ?!)
its in closure of the operator function!
when you call a number function
n
at here it returns a function, that cheks if it recives a argument or not,what if you pass th result of
plus
function with a value as argument ofseven
which recives a function?you have the operation check part with an
operation
likeplus
with argument involved in it,l
its hard a little bit , it took me 10 min to undrestand what he did !!!!
undrestanding your solution is like undrestanding the 5th dimention !!!
but i finally figured out what you've did!
This comment is hidden because it contains spoiler information about the solution
Loading more items...