Vidyalelo
JavaScript · Q62

Classes And Modules

Programming · JavaScript · question 62

Q62

What will be the reaction when a catch clause has no conditionals ?

A.
Takes it to be 0
B.
Takes it to be 1
C.
Takes it to be true
Answer
D.
Takes it to be false

Answer: Option C

Solution

Answer: Option C
Solution:
If a catch clause has no conditional, it behaves as if it has the conditional if true, and it is always triggered if no clause before it was triggered.