The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

What is JavaScript Function Currying?

What is JavaScript Function Currying?

5:34
Currying is a core concept of functional programming and a useful tool for any developer's toolbelt. In this lesson, John walks through the definition of currying and its practical usage.
Watch this lesson now
Avatar
egghead.io

Currying is a core concept of functional programming and a useful tool for any developer's toolbelt. In this lesson, John walks through the definition of currying and its practical usage.

Avatar
Srihari

best and easiest to understand explanation for how to practically use currying... thank you

In reply to egghead.io
Avatar
David

Great video!

Trying to wrap my brain around other practical applications for using curry in my day to day.

Any suggestions of other typical scenarios where currying might come in handy?

Thanks

Avatar
John

Fully answering your question is beyond the scope a of single comment, but currying is a core concept of functional programming. Writing in a functional-style is applicable to everything in your day-to-day. Instead of writing monolithic functions that don't return anything, imagine writing your application in a bunch of tiny functions each returning a something that you can use to compose together more complex functions.

It's a complete change in the way of thinking about writing code, so don't worry if it doesn't click right away.

Watch this, I think it will give you a better idea: https://egghead.io/lessons/javascript-advanced-reduce-composing-functions-with-reduce

In reply to David
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?