Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Why is stream.pipeline() preferred over stream.pipe()?

  1. A It is faster
  2. B It forwards errors and cleans up all streams when one fails
  3. C It supports more stream types
  4. D It compresses data automatically
Answer

It forwards errors and cleans up all streams when one fails

pipe does not propagate errors or destroy the remaining streams, which leaks file descriptors. pipeline handles both.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as