Skip to content

Instantly share code, notes, and snippets.

@PantherHawk
Created March 11, 2017 22:22
Show Gist options
  • Save PantherHawk/dbccad532f0fd638bd511e02e0b4bd02 to your computer and use it in GitHub Desktop.
Save PantherHawk/dbccad532f0fd638bd511e02e0b4bd02 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);
}
// -> c, b, a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment