Tuesday, February 7, 2017

Goal: have a callback run another callback

somefunction( parameter, function(response) {
    response
    // do something after the response
});


https://gist.github.com/ytiurin/7e5f57809e3e6eeac616
Alternative ways to pass a callback to a function in JavaScript

https://www.impressivewebs.com/callback-functions-javascript/
Callback functions in JavaScript - Louis Lazaris

https://github.com/bshambaugh/ok-coders-summer-2014/blob/master/08-javascript-functions-adv/08-01-functional-programming.md
OKCoders Functional Programming

No comments:

Post a Comment