Created
December 26, 2015 09:14
-
-
Save d1i1m1o1n/9c5a3ed78628b24f7954 to your computer and use it in GitHub Desktop.
Javascript function with callback
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 a(b) { | |
console.log('a'); | |
console.log('b'); | |
b(); | |
} | |
a(function() { | |
console.log('c'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment