Last active
July 1, 2019 01:40
-
-
Save kunigami/df74f8fbf46a97efae85767649494dbd to your computer and use it in GitHub Desktop.
This file contains 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
function f() { | |
return Promise.resolve(10); | |
} | |
function g() { | |
return f().then(r => { | |
return r + 1; | |
}); | |
} | |
g().then(r => console.log(r)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment