how to exti node when the code finished code example Example 1: node js quit process.exit(); Example 2: end code nodejs process.exit()