adspace
Answer Posted / Sukhdarshan Singh
You can write to a file in Node.js using the built-in 'fs' module. Here is an example:n```javascriptnconst fs = require('fs');nfs.writeFile('myfile.txt', 'Hello World!', (err) => {n if (err) throw err;n});n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers