Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
Created June 21, 2019 12:07
Show Gist options
  • Save prof3ssorSt3v3/6afa3a0025a0f5b0387144fd3c1c0667 to your computer and use it in GitHub Desktop.
Save prof3ssorSt3v3/6afa3a0025a0f5b0387144fd3c1c0667 to your computer and use it in GitHub Desktop.
console.log('a');
let timmy = setTimeout(function () {
console.log('b');
}, 1);
let timothy = setTimeout(function () {
console.log('c');
}, 10);
let timer = setTimeout(function () {
console.log('d');
}, 0);
console.log('e');
//what is the order of the output of the letters and why?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment