Skip to content

Instantly share code, notes, and snippets.

@DaveBben
Created August 5, 2017 16:30
Show Gist options
  • Save DaveBben/fdbce8241a0355998c195b850fb59dd2 to your computer and use it in GitHub Desktop.
Save DaveBben/fdbce8241a0355998c195b850fb59dd2 to your computer and use it in GitHub Desktop.
function doAfterDelay(callBackFuntion) {
return callBackFuntion(console.log("B"))
}
(function start() {
console.log("A");
setTimeout(function () {
doAfterDelay(() => {
console.log("C");
})
}, 3000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment