next
Round
Technologies
Saved
Contribute
Login
next
Round
Technologies
Saved
Contribute
Login
Question Loading...
Basics
Event Loop
Buffers
Streams
Events
Time functions
Clusters
Crypto
Modules
Worker Threads
File Operations
Threads
Performance Optimisation
Websockets
All Topics
22th of 24 Questions.
Explain the difference between `pipe()` and `on('data')` when working with streams.
pipe(): Used to connect streams and automatically handle data flow from one stream to another.
on('data'): An event listener that allows you to manually handle incoming data as it's emitted by a readable stream.