Skip to content

Instantly share code, notes, and snippets.

@datrine
Last active September 22, 2019 13:14
Show Gist options
  • Select an option

  • Save datrine/d722b9b291909beb4e4845ef3f1cabf9 to your computer and use it in GitHub Desktop.

Select an option

Save datrine/d722b9b291909beb4e4845ef3f1cabf9 to your computer and use it in GitHub Desktop.
callback_hell
((a,cb)=>{
++a;
cb(a)
})/*entry point>>>>*/(1,(b)=>{
b*=b;
((c,cb)=>{
cb(c)
})(b,(d)=>{
++d;
((e,cb)=>{
cb(e)
})(d,(f)=>{
console.log(f)
})
})
})
@datrine
Copy link
Author

datrine commented Sep 22, 2019

Traveling to callback hell in a long train of braces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment