Skip to content

Instantly share code, notes, and snippets.

@bilalucar
Created January 30, 2019 19:38
Show Gist options
  • Save bilalucar/4403af63f75daf901ef63eb6e5709ef4 to your computer and use it in GitHub Desktop.
Save bilalucar/4403af63f75daf901ef63eb6e5709ef4 to your computer and use it in GitHub Desktop.
JavaScript Intrigue the mind
function main(){
console.log('A');
setTimeout(
function display(){ console.log('B'); }
,0);
console.log('C');
}
main();
// Output
// A
// C
// B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment