express-static Flashcards

1
Q

What does express.static() return?

A

Static files… A middleware has to be a function.

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

What is the local __dirname variable in a Node.js module?

A

__dirname is an environment variable that tells you the absolute path of the directory containing the currently executing file.

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

What does the join() method of Node’s path module do?

A

The path.join() method joins all given path segments together using the platform-specific separator as a delimiter, then normalizes the resulting path.

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