Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 11: Managing Errors, Debugging, and Handling Events in JavaScript!
Instruction
Catch Binding
When an exception is thrown in the try block, exceptionVar (i.e., the e in catch (e)) holds the exception value. You can use this binding to get information about the exception that was thrown. This binding is only available in the catch block's scope.
It doesn't need to be a single identifier. You can use a destructuring pattern to assign multiple identifiers at once.
Example ...