Reading-Notes

Class 13: - Local Storage


Local Storage

However, the data is actually stored as a string. If you are storing and 
retrieving anything other than strings, you will need to use functions like 
parseInt() or parseFloat() to coerce your retrieved data into the expected 
JavaScript datatype.(local Storage)

With html storage you can implement that in your code and not lose data that has been changed within your code. for example when making a game without using html storage you lose progress as soon as the page is closed.