-1

I want to write data like this:

var myData = {
            "id": "10",
            "color": "blue"
        }

into a .JSON file using a script in a html file. The only solutions i found were using Node.js and not javascript in a browser. I am a beginner btw, so please explain it more simple.

  • 1
    not sure what you are trying to achieve. Storing file on client machine has limitations. If you want to save and retireve you may try local storage. – Krishnadas PC May 30 '22 at 16:26

0 Answers0