Identifying the stream type and operation

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Consider the following code snippet, which type of Stream is being used and what operation does it perform?
const fs = require('fs');
let data = '';
const readerStream = fs.createReadStream('input.txt');
readerStream.setEncoding('UTF8');
readerStream.on('data', function(chunk) {
data += chunk;
});
Select one option from the list

Create a free account to access the full topic