express static Flashcards
1
Q
What does express.static() return?
A
all the express content inside the public folder
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.
3
Q
What does the join() method of Node’s path module do?
A
join() method joins the specified path segments into one path. You can specify as many path segments as you like. The specified path segments must be strings, separated by comma.