Express-Static Flashcards

1
Q

What is the purpose of the Express Static middleware?

A

Express Static allows for static files to be added to an application dynamically so that all files are not all downloaded during the initial render of an appilcation and only served when they need to be.

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

What does the function express.static() return?

A

it returns an object

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

What are several examples of static files?

A

HTML files and images

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

What is a good way to serve application images using Express?

A

using the static method

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