Node.js - Child Processes
Identify the error in this code using
fork and how to fix it:
const { fork } = require('child_process');
const child = fork('child.js');
child.send('start');
child.on('message', (msg) => {
console.log(msg);
});
Assuming child.js does not listen for messages.