Exception Handling 24 Flashcards

1
Q

Why doesnt JS throw exceptions more often?

A

Exceptions weren’t supported by JS till ES3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of the optional exceptionVar that follows the catch keyword in a catch statement

A

“holds the caught exception for the associated catch block”

it’s the value that gets thrown as an exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly