Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSchild_process spawningSingle-choice MCQ

A child is spawned with { stdio: 'ignore' }. After the 'spawn' event fires, what is the value of child.stdout?

const c = spawn('node', ['-e', 'console.log(1)'], { stdio: 'ignore' }); c.on('spawn', () => console.log(c.stdout));