Created
August 5, 2017 16:30
-
-
Save DaveBben/fdbce8241a0355998c195b850fb59dd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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