express hello world Flashcards

1
Q

How do you mount a middleware with an Express application?

A

use method,

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

Which objects does an Express application pass to your middleware to manage the request/response lifecycle of the server?

A

pass a callback function with three arguments,a request object, response object, and a variable named next.

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

What is the appropriate Content-Type header for HTTP messages that contain JSON in their bodies?

A

Object, array, string, boolean, number or null

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