1.

Which of the following keyword stops the execution of JavaScript?(a) break(b) return(c) debugger(d) try….catchThe question was posed to me in an online interview.My question is taken from Essential JavaScript and jQuery in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT choice is (c) debugger

Easiest EXPLANATION: By using debugger keyword execution of JavaScript stops, and is debugger function is defined it is called at the moment, break is the keyword used to TERMINATE a loop or a switch, return is used for exit from a function, try…catch handle the ERRORS.



Discussion

No Comment Found

Related InterviewSolutions