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

Using child_process.spawn('echo', ['$HOME', '&&', 'whoami']) with the default options, what does the child receive as arguments?

const cp = require('child_process'); const r = cp.spawnSync('echo', ['$HOME', '&&', 'whoami']); console.log(JSON.stringify(r.stdout.toString()));