express-static Flashcards
1
Q
What does express.static() return?
A
returns middleware - functionality
2
Q
What is the local __dirname variable in a Node.js module?
A
it is the local directory name that you are running node from
3
Q
What does the join() method of Node’s path module do?
A
Path.join() method joins all given path segments together using the platform specific separator as a delimiter (one or more characters that separate text strings), then normalizes the resulting path