Skip to content

Instantly share code, notes, and snippets.

@PantherHawk
Last active March 11, 2017 22:26
Show Gist options
  • Save PantherHawk/8d9f42d2c9e336ec9aba67c14374d29b to your computer and use it in GitHub Desktop.
Save PantherHawk/8d9f42d2c9e336ec9aba67c14374d29b to your computer and use it in GitHub Desktop.
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