Home »
MCQs »
Express.js MCQs
In app.method(path, handler) method, which parameter is a call back function that is executed when a matching request type is detected on the appropriate route?
8. In app.method(path, handler) method, which parameter is a call back function that is executed when a matching request type is detected on the appropriate route?
- Path
- Handler
Answer: B) Handler
Explanation:
Handler is a callback function that is executed when a matching request type is detected on the appropriate route.