Is it possible to write to a file (on a disk) using JavaScript?

Yes, of course you can. It just depends on what API objects your javascript engine makes available to you.

However, odds are the javascript engine you’re thinking about does not provide this capability. Definitely none of the major web browsers will allow it.

Leave a Comment