node-process-argv Flashcards
1
Q
What is the process object in a Node.js program?
A
the process object is a global that provides information about, and control over, the current Node.JS process. As a global, it is always available to Node.js applications without using require()
2
Q
How do you access the process object in a Node.js program?
A
node process
3
Q
What is the data type of process.argv in Node.js?
A
property returns an array containing the command line arguments passed when the Node.js was launched.