Last active
April 23, 2018 22:10
-
-
Save zlatkov/2ab398f4d3eeccb80556de844de2cd92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } | |
| ); |
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
You've got a double indent on line 2.