Node.js - Child Processes
What will happen if you try to fork a non-existent file like
nofile.js?nofile.js?fork() returns a ChildProcess instance synchronously, but if the file does not exist, the child process emits an 'error' event (ENOENT) and exits without running code.
A: no synchronous throw in parent; B: does not run empty code; C: error is emitted asynchronously on child.
fork missing file = child created but exits [OK]
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions