Last active
April 12, 2017 19:38
-
-
Save fredeerock/8a4cd70a21bc755de40478b246444ef7 to your computer and use it in GitHub Desktop.
Super simple Callback Example
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
| 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