Skip to content

Instantly share code, notes, and snippets.

@leny
Created February 8, 2019 21:41
Show Gist options
  • Save leny/35a9a030c59507fd72021e7c499366d7 to your computer and use it in GitHub Desktop.
Save leny/35a9a030c59507fd72021e7c499366d7 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/vuluzib
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
const log = console.log;
const wait = (delay, next) => setTimeout(next,delay * 1000);
log(1);
wait(1, () => {
log(2);
});
log(3);
</script>
<script id="jsbin-source-javascript" type="text/javascript">const log = console.log;
const wait = (delay, next) => setTimeout(next,delay * 1000);
log(1);
wait(1, () => {
log(2);
});
log(3);</script></body>
</html>
const log = console.log;
const wait = (delay, next) => setTimeout(next,delay * 1000);
log(1);
wait(1, () => {
log(2);
});
log(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment