Node.js · Middle · Question 12 of 75
What are the four basic types of streams in Node.js?
- ✓Correct answer: Readable, Writable, Duplex, Transform
- 2File, Network, Memory, Process
- 3Input, Output, Error, Close
Explanation
A TCP socket is Duplex (read and write). Transform is a Duplex that changes data as it passes through, like zlib.createGzip().