Skip to content

Instantly share code, notes, and snippets.

@fredeerock
Last active April 12, 2017 19:38
Show Gist options
  • Select an option

  • Save fredeerock/8a4cd70a21bc755de40478b246444ef7 to your computer and use it in GitHub Desktop.

Select an option

Save fredeerock/8a4cd70a21bc755de40478b246444ef7 to your computer and use it in GitHub Desktop.
Super simple Callback Example
function one(callback){
console.log("one");
callback();
}
function two(callback){
console.log("two");
callback();
}
function three(callback){
console.log("three");
callback();
}
one(function(){two(function(){three(function(){});});});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment