express-static Flashcards
1
Q
What does express.static() return?
A
Returns a function
2
Q
What is the local __dirname variable in a Node.js module?
A
string that is the directory name of the current module
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.