I’ve created a coin clicking game
https://codepen.io/Glaurung/full/qBWmPbZ
and I want the progress to be automatically saved when the user exits the game. When the user comes back to play it, the progress should be the same as when they left.
Can anyone please help me make a function that saves it?
Here is my code:
https://codepen.io/Glaurung/pen/qBWmPbZ
Thanks.