DEV Community

Discussion on: What is Currying In JavaScript Is and How to Use It

Collapse
 
aminnairi profile image
Amin

Hi there and thanks for your article.

I believe there is one mistake in your article in the first example you give. The second call to sumNumbers() will produce a function. I think you meant to call sum() instead?

I think you should try to add some console.log calls to really see what is the expected output so that we can try your examples at home.

Collapse
 
alexdevero profile image
Alex Devero

Thank you Amin. I will take a look at that mistake with sum(). I will also add console.log() statements in the future posts.