I have to possible error inside a try catch block like below:
try {
let result = A || B;
// use result
} catch(e) {
console.log("ERROR")
}
Each of A or B can throw error. Waht I need is I want to refer to catch only in situation both A and B throw error. is it possible?
**Note: I know that I can use separate try-catch for each of them. I was wondering if I can write it inside just single try-catch block