node-fs-writefile-Q&A Flashcards
1
Q
What method is available in the Node.js fs module for writing data to a file?
A
fs.writeFile() method
2
Q
Are file operations using the fs module synchronous or asynchronous?
A
All the operations can be performed in a synchronous as well as in an asynchronous approach depending on the user requirements.