Skip to content

Instantly share code, notes, and snippets.

@robin-rpr
Created February 13, 2021 23:18
Show Gist options
  • Save robin-rpr/2ad4c8c594919e37e73131f83f767874 to your computer and use it in GitHub Desktop.
Save robin-rpr/2ad4c8c594919e37e73131f83f767874 to your computer and use it in GitHub Desktop.
Medium - Node Gem
function delayed(timeout) {
setTimeout(() => {
console.log('Something');
return;
}, timeout);
}
delayed(1000); // 1 sec
console.log('Hello world!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment