An Easy Introduction to IndexedDB in the Browser

Adding, getting, and deleting data

Louis Petrik
JavaScript in Plain English
5 min readSep 14, 2021

--

IndexedDB in JavaScript

You surely know the local storage and cookies. Both allow us to save data permanently in the browser. Yet, both features are based on the key-value pair approach. Say we want to save a user's age, we would use the user's name or ID as the key — the value is the age itself.

--

--