Analyze the following code:
try { console.log("start"); } catch (error) { console.log("error"); } finally { console.log("end"); }
What will happen as a result of its execution?
- The following words will appear in the console:
"start"
,"end"
. - The following words will appear in the console:
"error"
,"end"
. - The words
"start"
,"error"
, “end” will appear in the console on successive lines. - The word
"error"
will appear in the console.
More Questions: JavaScript Essentials 1 – JSE1: Module 6 Test
Please login or Register to submit your answer