Express Hello World Flashcards
1
Q
What is Express middleware?
A
a set of functions that are executed during the process of http requests received by an express application
2
Q
What is Express middleware useful for?
A
Building a sing /muilti/hybrid web application
3
Q
How do you mount a middleware with an Express application?
A
(putting a directory ) E: app.use(‘/user/:id’)
4
Q
Which objects does an Express application pass to your middleware to manage the request/response lifecycle of the server?
A
Request, response, next function