Instantly share code, notes, and snippets.

Embed
What would you like to do?
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