express-static Flashcards

1
Q

What does express.static() return?

A

Returns 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

string that is the directory name of the current module

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

Joins all given argument path segments together using the platform-specific separator, then normalizes the resulting path. Zero length paths are ignored and if the joined path string is zero-length then ‘.’ will be returned.

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