I tried to look up how to create a save file using nodejs and the only thing I found out was that you could use JSON to accomplish this and was still confused as to how to use it.
I intend to use nodejs, and the IDE I'll be using is vscode.
I intend for the user to have the option to save the "current state of the game" for example, player wins a battle or gets items from some place and then wants to save the game.
What resources can I use in order to accomplish this task of creating a save file that can be written / read / and give the user an option of "starting over" ?