Express Hello World Flashcards
1
Q
How do you register a middleware with an Express application?
A
With the use() method of the Express application object
2
Q
Which objects does an Express application pass to your middleware to manage the request/response lifecycle of the server?
A
req (request object), res (response object), next (next() function)