ARGV

In every NodeJS program, there is a magic array named argv.

It contains the command line arguments to the program.

If the user types this in the Terminal:

node hello.js Alice Bob

then process.argv contains:

[ 
    '/usr/local/bin/node',
    '/Users/alex/code/hello.js',
    'Alice',
    'Bob'
]
[menu]

1/6