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

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it