I have stored a value in localstorage in the variable name "HighScore"
How do I get the value stored in localstorage?
Thank you all,
The manual has instructions on how to use local storage.
Develop games in your browser. Powerful, performant & highly capable.
First, check if it exists, if it does, then retrieve it. If you look at my Asteroids source (see link) there's a working example.
Yes, I learned it now,
The functions seems to be asynchronous and that made me little confusion to learn about. Now I understand how to use them,
Here is my events window. I have used 2 buttons, 1 input box and 2 text display boxes,