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 does Express differentiate a generic middleware function from an error-handling middleware function?
A
By looking at the order of registration in the routing stack
B
By analyzing the function signature: error-handling middleware declares exactly four parameters (err, req, res, next)
C
By checking if the function returns a promise
D
By checking if the file has an '.error' prefix extension
Check Answer