Created
February 8, 2019 21:41
-
-
Save leny/35a9a030c59507fd72021e7c499366d7 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/vuluzib
This file contains hidden or 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
<!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> |
This file contains hidden or 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
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