Analyze the following code:
try { ocnsole.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 words
"start"
,"error"
,"end"
will appear in the console on successive lines. - The word
"error"
will appear in the console. - The following words will appear in the console:
"error"
,"end"
.
More Questions: JavaScript Essentials 1 – JSE1: Module 6 Test
Please login or Register to submit your answer