Skip to content

Instantly share code, notes, and snippets.

@alibalbars
Created July 30, 2021 16:59
Show Gist options
  • Save alibalbars/0f98db8aff43e6cfccfcf8da7a430420 to your computer and use it in GitHub Desktop.
Save alibalbars/0f98db8aff43e6cfccfcf8da7a430420 to your computer and use it in GitHub Desktop.
Js Promises
let promise = new Promise(function(resolve, reject) {
setTimeout(() => resolve("done"), 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment