hello JS lovers .
var fs = require('fs');
fs.writeFile("/tmp/test", "Hey there!", function(err) {
if(err) {
console.log(err);
} else {
console.log("The file was saved!");
}
});
This function only writes once in file. And it ignores the rest. Can you help me with this code?