Skip to content

Instantly share code, notes, and snippets.

@amysimmons
Last active June 11, 2018 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amysimmons/f05360efe9b18e1f74ebf3bab8d160de to your computer and use it in GitHub Desktop.
Save amysimmons/f05360efe9b18e1f74ebf3bab8d160de to your computer and use it in GitHub Desktop.
const p = new Promise(function(resolve, reject){
  // resolve(...) to go to the fulfilled or rejected handler, depending on what is passed
  // reject(...) to go to the rejected handler 
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment