Skip to content

Instantly share code, notes, and snippets.

@NateSeymour
Last active December 1, 2019 12:52
Show Gist options
  • Save NateSeymour/d075ba2789efd7dfb5c6cb51751d9872 to your computer and use it in GitHub Desktop.
Save NateSeymour/d075ba2789efd7dfb5c6cb51751d9872 to your computer and use it in GitHub Desktop.
function myMessage() {
sleep(1000); // Theoretical function that makes the script wait 1000ms
console.log('My message');
}
myMessage();
console.log('I like javascript');
/* output
My message
I like javascript
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment