Which JavaScript statement handles exceptions?
-
A
try...catch
Correct answer
-
B
throw
-
C
error
-
D
exception
Correct answer
A. try...catch
11 views
Explanation
try...catch handles exceptions. Source: Standard JavaScript content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ