Node ?'s Flashcards
1
Q
What is Node.js
A
Allows JS to run outside of browser/server
2
Q
What is it used for?
A
builds back-ends for web applications
3
Q
What is the process object in Node.js?
A
global object that provides info about current node.js processes
4
Q
How do you access the process object in Node.js?
A
console.log(process)
5
Q
What is the data type of process.argv in Node?
A
array
6
Q
What is a JS module?
A
any single ‘.js’ file
7
Q
What values are passed into a Node.js module’s local scope?
A
top level variables (const, let)
8
Q
Give to examples of truly global variables in a Node.js program?
A
__dirname (directory name), __filename (file name)