Match the fs methods with the values they return.
Write to file
Match fs methods
Report a typo
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
___
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.