Arrange the lines of code so that after reading the file, the contents are displayed in the console.
Introduction to fs module
Fs module in action
Report a typo
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); ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.