when I used .txt worked fine once wrote in the data to append file;

const fs =require('fs'); fs.appendFile('vzgo.txt', 'data to append', (err) => { if (err) throw err; console.log('The "data to append" was appended to file!'); }); 

but when I use the .js ending then it works endlessly;

 const fs =require('fs'); fs.appendFile('vzgo.js', 'data to append', (err) => { if (err) throw err; console.log('The "data to append" was appended to file!'); }); 
  • What does it mean to work endlessly? everything works fine - overthesanity
  • Why in the second case the indent is more on the level? What is this structure inside? - Qwertiy
  • I shot a video watch youtube.com/watch?v=bTWW4Qr24sU&feature=youtu.be - Silicum Silium
  • Because you use nodemon, which detects a change in the .js file, restarts the project. - Yaant
  • so you would immediately say about nodemon , it has an ignore option where you need to transfer the file (s) that you do not need to track nodemon --ignore './vzgo.js' --exec ./app.js - overthesanity

0