Analyze the following code:
try { ocnsole.log("start"); } catch (error) { console.log("error"); } console.log("end");
What will happen as a result of its execution?
- The following words will appear in the console:
"start"
,"end"
. - The console will display the words
"start"
,"error"
,"end"
on successive lines. - The operation of the program will be interrupted and the console will display the default message
"Uncaught ReferenceError: ocnsole is not defined"
. - In the console, there will appear in successive lines the words
"error"
,"end"
.
More Questions: JavaScript Essentials 1 – JSE1: Module 6 Test
Please login or Register to submit your answer