Fs module in action

Report a typo

Arrange the lines of code so that after reading the file, the contents are displayed in the console.

Put the items in the correct order
const data = fs.readFile('../paper.txt', 'utf-8', (err, data) => {
const fs = require('node:fs');
if (err) throw err;
});
console.log(data);
___

Create a free account to access the full topic