What do you mean by “streams”? What are the different types of streams in Node.js?

Streams are the objects that allow and enable the continuous process of reading the data from the source code and writing the data to the destination.

Streams are of four types:

  • Facilitate reading operation (Readable).
  • Facilitate writing operation (Writable).
  • Facilitate both reading and writing operations (Duplex).
  • Kind of duplex stream that performs the computations based on the available inputs (Transform).

Suggest An Answer

No suggestions avaliable!

Latest post from Node js Interview Questions

Ask Question