DEV Community

Discussion on: How do you handle JavaScript errors?

Collapse
 
somedood profile image
Basti Ortiz

I'd say the try-catch block is good enough for most use cases.

If you're interested, MDN has a list of all the types of errors in JavaScript. You can start diving there for error handling. If you're already familiar with other programming languages, it shouldn't be too different from what you already know.