Skip to main content
🔮 Output PredictionND Node.js Hard⚡+35 XP

Readable Stream

How is data read from a readable stream?

Node.js
stream.on('data', chunk => process.stdout.write(chunk));
stream.on('end', () => console.log('Done'));

🔮 What is the output?