Last active
October 9, 2017 13:14
-
-
Save rafaelmaeuer/ca850627c5ce101070a6693dca5f02e8 to your computer and use it in GitHub Desktop.
Unhandled Promise Rejection - From https://stackoverflow.com/questions/40500490/what-is-unhandled-promise-rejection
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
var myfunc = PTest(); | |
myfunc.then(function () { | |
console.log("Promise Resolved"); | |
}).catch(function () { | |
console.log("Promise Rejected"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment