I like to know if somebody knows if there are, in case, what is, the difference in using a "Dictionary" object or a "LocalStorage" object to store variables in runtime. I know than "LocalStorage" can persist the data, but that is not the point. The question is only to store and retrieve data in runtime. For example, if the webapp is closed, by energy fault, the "LocalStorage" data is preserved?
Develop games in your browser. Powerful, performant & highly capable.
Could you say something about?
Pretty sure local storage is written to hard drive whereas dictionary is just ram, so its a lot better to use dictionary I'd imagine (since reading/writing from hard drive isn't great to do all the time since ram is more efficient.) That's my understanding.
Yes — you are right!