quit app node js code example Example 1: node js quit process.exit(); Example 2: exit application node js process.exit(this);