Web Storage API

The simple browser key-value storage made of localStorage and sessionStorage, which stores strings per origin.

In more detail

It is easy to use but synchronous: every read and write blocks the main thread while it touches disk. Use it for small preferences and IndexedDB for anything large.

Related terms

Taught in

References