Last active
September 22, 2019 13:14
-
-
Save datrine/d722b9b291909beb4e4845ef3f1cabf9 to your computer and use it in GitHub Desktop.
callback_hell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ((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) | |
| }) | |
| }) | |
| }) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traveling to callback hell in a long train of braces