Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nafeu/40e9c0ca83e363118bff5bfc9e72c6e9 to your computer and use it in GitHub Desktop.
Save nafeu/40e9c0ca83e363118bff5bfc9e72c6e9 to your computer and use it in GitHub Desktop.
delay(() => '[RETURN VALUE 1]', 1000)
.then(result => {
console.log(result); // [RETURN VALUE 1] in result
delay(() => '[RETURN VALUE 2]', 1000)
.then(result => {
console.log(result); // [RETURN VALUE 2] in result
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment