Quiz Yourself on Advanced Topics in Node.js
A short quiz on the Node.js topics covered here before we move on to the next chapter.
Technical Quiz
1.
What will be the output of this code?
process.on('beforeExit', () => {
console.log('blue');
});
process.on('exit', () => {
console.log('green');
});
console.log('red')
process.exit()
A.
red
blue
B.
red
green
C.
red
blue
green
1 / 5