Skip to content

Instantly share code, notes, and snippets.

@gkadillak
Created January 15, 2018 18:47
Show Gist options
  • Save gkadillak/f5c2b1ce326a40326350930f98f34a0d to your computer and use it in GitHub Desktop.
Save gkadillak/f5c2b1ce326a40326350930f98f34a0d to your computer and use it in GitHub Desktop.
<html lang="en-us">
<body>
<script src="simple_event_loop.js" type="application/javascript"></script>
</body>
</html>
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