Question:

How many types of streams are present in Node.

Answer:

In Node.js, there are four types of streams.

  • Readable - Stream which is used for read operation.

  • Writable - Stream which is used for write operation.

  • Duplex - Stream which can be used for both read and write operation.

  • Transform - A type of duplex stream where the output is computed based on input.


Keywords:

© 2017 QuizBucket.org