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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Express middleware useful for?

A

Building a sing /muilti/hybrid web application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you mount a middleware with an Express application?

A

(putting a directory ) E: app.use(‘/user/:id’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly