Node.js - Child Processes
Examine this IPC code snippet:
Why does the parent never log any message?
const { fork } = require('child_process');
const child = fork('child.js');
child.on('message', msg => console.log('Parent received:', msg));
child.send('Ping');
// child.js content:
// process.send('Pong');Why does the parent never log any message?
