What determines whether a Node.js app is kept running?
When the code is something like this:
console.log('Hello World');
This phrase will be printed and the app will immediately exit.
But sometimes when we have something like a web server that is listening it keeps working.
What is the general rule that determines whether the app will keep running or not? Is it something related to the event loop or something like that?