MCQ Answer

Which of the following keyword stops the execution of JavaScript?

Which of the following keyword stops the execution of JavaScript?

निम्नलिखित में से कौन सा कीवर्ड जावास्क्रिप्ट के निष्पादन को रोकता है?
Topic : JS Error Handling

A. break

B. return

C. debugger

D. try….catch




Correct Answer is :

B. return



Explanation
The return keyword stops the execution of a function and optionally returns a value. While break is used to exit loops or switch statements, debugger can pause execution for debugging purposes, and try...catch is used for handling exceptions, they do not stop the execution of JavaScript in general.
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2024 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz