Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

JavaScript Error Handling

JavaScript Exceptions, Errors, and Try Catch

In this lesson, learn the fundamental building blocks of error handling: error objects and try/catch blocks. Error objects are structures that represent a program error. They contain information like: a stacktrace to help you find what caused the error, and an error message with more information. By default, thrown errors stop script execution dead in it’s tracks but try/catch blocks allow to “catch” thrown errors and handle them more gracefully.

Links