What method is available in the Node.js fs module for writing data to a file?
The fs.writeFile method.
Are file operations using the fs module synchronous or asynchronous?
Yes (both) - there are synchronous and asynchronous methods available (readFileSync vs readFile).