after if end process js code example Example 1: end code nodejs process.exit() Example 2: exit program js process.exit(1)