Node.js - Child Processes
What will be the output of this Node.js code snippet?
const { fork } = require('child_process');
const child = fork('child.js');
child.on('message', (msg) => {
console.log('Parent received:', msg);
});
child.send('Hello Child');
// child.js content:
// process.on('message', (msg) => {
// process.send(msg + ' from Child');
// });