Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardNodeJSstreams backpressure internalsSingle-choice MCQ

A Readable created with Readable.from(['a','b','c']) is consumed via the 'data' event. Which statement about its internal mode and consumption is correct?

const { Readable } = require('stream'); const r = Readable.from(['a','b','c']); r.on('data', (c) => console.log(c));