Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSreadable vs writable streamsSingle-choice MCQ

A custom Readable stream is created in object mode without specifying highWaterMark. How many objects (not bytes) will Node buffer internally before backpressure kicks in?

const { Readable } = require('stream'); const r = new Readable({ objectMode: true, read() {} }); console.log(r.readableHighWaterMark);