A
A
Arseniy Sokolovsky2020-08-22 23:19:19
JavaScript
Arseniy Sokolovsky, 2020-08-22 23:19:19

How to write data from a variable to JSON?

there is JSON:

{
  "Nick": "Радость",
  "Level": 0,
  "Mojo": "0"
}


and there are variables with the same names, how can I make it so that when the variable is updated, it will pass the data to this JSON? and did the Nick, Level and Mojo values ​​change?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
McBernar, 2020-08-22
@McBernar

Files cannot be written from the browser.

L
laminor4ik, 2020-08-22
@laminor4ik

You cannot pass a reference to the properties of variable objects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question