Saturday, June 19, 2021

Node.js end event

Another practice of hankerrank today, this is the problem in windows :

process.stdin.on('end', function() {...}

 The fix is :

process.on('SIGINT', function() {
...
exit(0);

 And, use CTRL+C to end the process.

No comments: