Computer scienceBackendNode.jsCore ConceptsGlobal Objects

Process object

Stop program

Report a typo

Which process method must be called to terminate the program after a message with user data is displayed in the console?

process.stdin.on('data', (inputMessage) => {
    console.log(inputMessage);

    // stop program
});
Enter a short text

Create a free account to access the full topic