Argv Flashcards

1
Q

What is the process object in a Node.js program?

A

global that provides information about, and control over, the current Node.js process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you access the process object in a Node.js program?

A

require(‘process’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the data type of process.argv in Node.js?

A

array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you access the command line arguments in a Node.js program?

A

choose the specific array portion they are in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly