4 ms·
You usually use localStorage for e.g. user settings that are not stored on the server. There are many sites that give you the possibility to change a preference
by pipu 10y ago
You usually use localStorage for e.g. user settings that are not stored on the server. There are many sites that give you the possibility to change a preference or two without the need for an actual account on the site. That sort of information is usually stored in one of the client-side storages.