nodejs.dev
nodejs.dev copied to clipboard
Update index.md
Description
Since node 10, it is mandatory to pass a callback on fs.writeFile(). Otherwise the method does not work.
I'm not sure it is mandatory? Small example here: https://stackblitz.com/edit/node-rvjjyr?file=index.js
Well, yeah, we can do that, but the code from the docs doesn't work. So i guess it does need fixes
This callback is not mandatory, as @mikeesto explained. Could you please give an example of where you're facing this issue?
Closing this PR as it sounds abandoned.