how to terminate a process in javascript code example Example: how to terminate a program in js process.exit(1)