Question 9/17
intermediate
Select one answer

How do you handle errors in Express?

Using try-catch only
Using error-handling middleware with 4 parameters (err, req, res, next)
Errors are handled automatically
Using console.error()

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.