Please enable JavaScript.
Coggle requires JavaScript to display documents.
2 Functions (Method Design (Partial Application and Currying (partial…
2 Functions
Method Design
-
-
-
-
-
-
-
-
-
-
-
Promises and Deferreds
A deferred is the object that controls the promise, with a few extra methods.
jQuery’s .Deferred() returns a new object that does everything a promise does but also
provides .resolve() and .reject() methods that trigger the corresponding callbacks.
-
-
function definition
several ways (really)
-
-
-
-
-
Lambdas
-
commonly used for
-
-
-
Take a function that requires multiple parameters, and return a function that re‐
quires fewer parameters
-
-
-
-
-
-
Clousures
In a nutshell, a closure stores function state, even after the function has returned.
To
create a closure, simply define a function inside another function and expose it.
Closures are commonly used to feed data to event handlers or callbacks, which might
get triggered long after the containing function has finished.
First-Class
All functions in JavaScript are first class, meaning that you can use them anywhere you
would use a value