Skip to content

Instantly share code, notes, and snippets.

@cemmanuel1
Created December 23, 2013 18:09
Show Gist options
  • Select an option

  • Save cemmanuel1/8101902 to your computer and use it in GitHub Desktop.

Select an option

Save cemmanuel1/8101902 to your computer and use it in GitHub Desktop.
var promise = new Promise(function(resolve, reject) {
resolve("Everlane");
});
promise.then(function(result) {
console.log(result)
}).catch(function(error){
console.log(error.message);
});
//Everlane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment