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.

Revisions

  1. cemmanuel1 created this gist Dec 23, 2013.
    11 changes: 11 additions & 0 deletions promise.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    var promise = new Promise(function(resolve, reject) {
    resolve("Everlane");
    });

    promise.then(function(result) {
    console.log(result)
    }).catch(function(error){
    console.log(error.message);
    });

    //Everlane