how to check if 2 arguments are the same in node js with process.argv code example Example: node run parameters var args = process.argv.slice(2);