Questions
MiuraMiuraasked 4 months ago
how to exit in NodeJS application
1

1 Answers

Accepted
codegenlabcodegenlabanswered 4 months ago
Solution 1: Press Ctrl+C key Solution 2: Using process.exit() Function ex,

if (a == b) {
   console.log("Program exit when a and b become equal");
   process.exit(0);
}
1