Match fs methods

Report a typo

Match the fs methods with the values they return.

Match the items from left and right columns
fs.writeFileSync('example.txt', 'Hi Node.js learners!', {flag: 'a'})
fs.appendFile('example.txt', 'Hi Node.js learners!', (err) => {
if (err) {
console.log(err);
}
console.log('Done!');
})
fs.writeFileSync('example.txt', 'Hi Node.js learners!')
fs.appendFileSync('example.txt', 'Hi Node.js learners!', {flag: 'a+'})
reading and appending to file synchronously
appending to file synchronously
writing to file synchronously
appending to file asynchronously
___

Create a free account to access the full topic