Hi While studying the ProgressiveReward cloud script,
I have a question that I do not know.
I am not good at JavaScript syntax
At line 1,
why is the tracker initialized to {}?
If you are going to assign it, do not you need to initialize it?
In step 2, does the json.parse () function create an object in parentheses in json format? (Eg test: 1> {"test": 1} ???)
3. I do not know the exact usage of json.stringify ...
The tutorial should return a serializable object. It's called In this case, is it just returning the default dummy object?
I did not understand the meaning of each line from 4 to 7 at all.
I do not know what date.now is, and I do not know what to do in the if statement.
I would really appreciate it if you give me a detailed explanation on each line.
ps. Do I need to study JavaScript to be good at cloud scripting?