Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- const x = functionThatCanThrowException();
- } catch (err) {
- console.log("bad");
- }
- try {
- const y = anotherFunctionThatCanThrowException();
- } catch (err) {
- console.log("bad2");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement