It's all about Error: JavaScript Error and Handling

In general, JS is not robust at error handling. It is having an Error object which can be customized accordingly. We can add and modify error information. When catching error by try-catch we are able to catch the error but not by their type

Types of Error

JS has eight error types.