...

/

Create an Index for the Object Store

Create an Index for the Object Store

Learn to create an index for the object store.

The createIndex() method

To create an index in IndexedDB, we use the createIndex() method of the IDBObjectStore interface. The createIndex() method can be called only inside the onupgradeneeded event handler.

Syntax

Access this course and 1400+ top-rated courses and projects.