I want to know if global variables reset on their own because I am trying to make a money system with a global variable but I don't know if it will save. If it doesn't then do I have to use webstorage or something?
Develop games in your browser. Powerful, performant & highly capable.
Global variable will reset indeed, the webstorage with local keys seems a better choice