JavaScript Function Currying

Опубликовано: 31 October 2024
на канале: Steve Griffith - Prof3ssorSt3v3
16,087
461

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: https://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 Functions in JavaScript  

Function Return statements:    • JavaScript Function Return Statements  

Function parameters:    • JavaScript Function Parameters  

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