fs.write('devto.txt', 'Hello World', err => console.log(err));
wrong function, you need to use writeFile, the previos one takes file description as a first input argument.
Whoops! My bad! Thank you for that. I have corrected the error.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.