Question 15/17
advanced
Select one answer

What is the difference between spawn() and exec() in child_process?

They are the same
spawn streams data, exec buffers entire output in memory
exec is async, spawn is sync
spawn is deprecated

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.