js process.exit code example Example 1: node js quit Click to copyprocess.exit(); Example 2: end code nodejs Click to copyprocess.exit()