Problem Statement
How can you read command line arguments in Node.js?
Explanation
You can use the global `process.argv` array to read CLI arguments passed to the script. Arguments start from index 2, as the first two are node executable and script path.
Code Solution
SolutionRead Only
console.log(process.argv.slice(2)); // node app.js arg1 arg2