Created
January 15, 2018 18:47
-
-
Save gkadillak/f5c2b1ce326a40326350930f98f34a0d 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
<html lang="en-us"> | |
<body> | |
<script src="simple_event_loop.js" type="application/javascript"></script> | |
</body> | |
</html> |
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 logHello(name) { | |
console.info('Hello,', name); | |
} | |
function callLogger(name) { | |
return logHello(name); | |
} | |
function logName(name) { | |
callLogger(name); | |
} | |
window.setTimeout(logName, 1000, 'Garrett'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment