how to stop all code in a .js file from running javascript code example Example: how to terminate a program in js process.exit(1)