Skip to content

Instantly share code, notes, and snippets.

@zlatkov
Last active April 23, 2018 22:10
Show Gist options
  • Save zlatkov/2ab398f4d3eeccb80556de844de2cd92 to your computer and use it in GitHub Desktop.
Save zlatkov/2ab398f4d3eeccb80556de844de2cd92 to your computer and use it in GitHub Desktop.
var p = new Promise( function(resolve,reject){
resolve(374);
});
p.then(function fulfilled(message){
foo.bar();
console.log(message); // never reached
},
function rejected(err){
// never reached
}
);
@ryanpcmcquen
Copy link

You've got a double indent on line 2.

@dreamingbinary
Copy link

Would be great if a new line is entered before function fulfilled(message) just to make it slightly easier to read as you had it in sample 17.
Indentation on line 18 as well. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment