MCQs>IT & Programming>JavaScript>What happens when you throw an exception in the catch block, using nested try-catch blocks? For example: try { try { throw 'Inside Exception'; } catch (ex) { throw 'exception in inner finally'; } } catch (ex) { console.log('Outer Catch: ' + ex) }
JavaScript MCQs
What happens when you throw an exception in the catch block, using nested try-catch blocks? For example: try { try { throw "Inside Exception"; } catch (ex) { throw "exception in inner finally"; } } catch (ex) { console.log("Outer Catch: " + ex) }
Answer
Correct Answer: Exception is caught by outer catch block
Explanation:
Note: This Question is unanswered, help us to find answer for this one