Node.js · Middle · Question 12 of 75

What are the four basic types of streams in Node.js?

Explanation

A TCP socket is Duplex (read and write). Transform is a Duplex that changes data as it passes through, like zlib.createGzip().

Further reading

Problem with a question

Node.js · Middle · question 12

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz