0

I am learning Javascript and working at frontend only. I want to write a JSON file using javascript and read it. I know how to read it but don't know how to write it with frontend javascript.

  • Hey, just google it. found good link: https://stackoverflow.com/questions/32546100/how-to-write-data-to-a-json-file-using-javascript – Niteen Apr 01 '19 at 06:22

1 Answers1

1

To my best knowledge writing to the file system is against front-end development. I suggest two options:

  1. use cookie/localstorage
  2. download the file

I would go about the first option