Last active
March 11, 2017 22:26
-
-
Save PantherHawk/8d9f42d2c9e336ec9aba67c14374d29b to your computer and use it in GitHub Desktop.
This file contains 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() { | |
setTimeout(function() { | |
console.log('a'); | |
b(); | |
}, 2000); | |
}; | |
function b() { | |
setTimeout(function() { | |
console.log('b'); | |
c(); | |
}, 1000); | |
}; | |
function c() { | |
setTimeout(function() { | |
console.log('c'); | |
}, 500); | |
} | |
a() // -> a, b, c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment