open file in js and write code example
Example: writing files in javascript
'use strict'
const fs = require('fs');
let fileContent = 'I can write';
fs.writeFileSync('message.txt', fileContent);
'use strict'
const fs = require('fs');
let fileContent = 'I can write';
fs.writeFileSync('message.txt', fileContent);