Closures, Currying, Partially applied functions in javascript demystified
We need to understand closures first before we understand currying. closures allows inner function to access the variables in the outside function in which it is declared. Below MDN example explains it very well....