Express Static Flashcards
1
Q
What does express.static() return?
A
It returns a function that is ‘under-the-hood’ in the Express framework
2
Q
What is the local __dirname variable in a Node.js module?
A
It is the filepath location of the current module
3
Q
What does the join() method of Node’s path module do?
A
It concatenates the arguments and returns the result as a string