Command-line arguments are a common way to parameterize execution of programs. For example, node hello.js uses hello.js as an argument to the node program.
To experiment with command-line arguments it’s best to save this in a file (e.g., command-line-arguments.ts) and run it with ts-node:
Next we’ll look at more advanced command-line processing with argument parsing libraries.