DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Express.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Express.js
How should middleware pass a runtime error to Express's global error-handling stack?
A
By throwing the error inside a callback wrapper
B
By calling `next(error)` with the error object as the argument
C
By executing `res.throw(error)`
D
By calling `process.exit(1)`
Check Answer