Manipulating files

Report a typo

What does this line of code show?

const fs = require('node:fs');

fs.appendFile('message.txt', 'Hey guys!', (err) => {
    if (err) {
        console.log(err);
    }
    fs.appendFile('message.txt', 'How are you doing?', (err) => {
     if (err) {
        console.log(err);
    }
        console.log('Written!');
    })
});
Select one option from the list
___

Create a free account to access the full topic