Node.js - Child Processes
Identify the error in this code snippet:
const { fork } = require('child_process');
const child = fork();
child.send('Hi');const { fork } = require('child_process');
const child = fork();
child.send('Hi');fork requires a file path argument to run; calling fork() without arguments is invalid.
send exists on child process, fork is a function not a class, no need to await fork.
fork argument required [OK]
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions