how to take an argument while running nodejs script code example Example: node run parameters var args = process.argv.slice(2);