Exception Handling 24 Flashcards
1
Q
Why doesnt JS throw exceptions more often?
A
Exceptions weren’t supported by JS till ES3
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