The browser cannot manipulate anything from your operating system, all that is available for use is what the browser already allows.
If you want to persistently manipulate data in files such as JSON
, a server should be used! For you an option would be the NodeJS
, since you use the Javascript
, using the NodeJS
you can manipulate the files with the library fs
and use the CRUD
.
But don’t be discouraged, if you don’t want to use a server for some reason (backend), you can use other options like:
- 1) Local storage with
LocalStorage
and/or SessionStorage
.
- 2) Use a
BaaS
(backend as a service), which has a database NoSQL
in real time, an example since it uses Javascript
is the Firebase
!