Created
January 5, 2021 11:39
-
-
Save zlatkov/6c9ec6a27ae92aa7a59c977eb2a5d7e2 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
try { | |
foo(‘test’) | |
.then(x => console.log(x)) | |
.catch(err => console.log(err)); | |
} catch(err) { | |
// Now the error is handed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment