Рет қаралды 15,874
Function currying is a technique that is only possible in JavaScript because functions are first-class objects.
This means that they can be passed to a function as a parameter AND they can be returned from a function.
Code GIST: gist.github.com/prof3ssorSt3v...
Below are a few videos that will help you if you don't understand the fundamentals of functions.
Function Basics: • Introduction to Functi...
Function Return statements: • JavaScript Function Re...
Function parameters: • JavaScript Function Pa...
Variable Scope: • Variable Scope
I also made reference to closures during the video. This is an important but challenging concept in JS. If you want to learn more about closures: • JavaScript Closures