Created
June 1, 2017 15:48
-
-
Save CodeLenny/075e2b9f7863283c66417eb9cdb8f5c4 to your computer and use it in GitHub Desktop.
Wat
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
let x = new Error("Test"); | |
Promise | |
.resolve(x) | |
.then(() => console.log("Good")) | |
.catch() => console.log("Bad")); | |
// => "Bad" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment