Last active
November 7, 2018 08:39
-
-
Save nem035/3b42a7fc1d0652ff57550c777d7767e8 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
| const p = new Promise(function(resolve) { | |
| resolve(Math.random()); | |
| }); | |
| // both of these statements give the same output | |
| p.then(console.log); | |
| p.then(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment