Handling Errors with try, catch and finally
try runs code that might fail, catch takes over when it does and gets an error object with a name and a message, and finally runs either way, so one bad value doesn't stop your whole program.
Updated

- Category
- JavaScript
- Level
- Apprentice
- Tags
- catch Block (javascript), Error, finally Block (javascript), JavaScript, Runtime Error (javascript), software-development, Stack Trace (javascript), try Block (javascript)