Node.js - Child Processes
What will be the output of this code snippet?
const { spawn } = require('child_process');
const child = spawn('nonexistentcommand');
child.on('error', (err) => console.log('Error:', err.message));
child.on('exit', (code) => console.log('Exit code:', code));